@@ -62,7 +62,7 @@ bool PipelineResMgr::load_all_json(const std::filesystem::path& path)
62
62
return false ;
63
63
}
64
64
65
- bool loaded = false ;
65
+ bool valid = false ;
66
66
67
67
std::set<std::string> existing_keys;
68
68
for (auto & entry : std::filesystem::recursive_directory_iterator (path)) {
@@ -89,10 +89,10 @@ bool PipelineResMgr::load_all_json(const std::filesystem::path& path)
89
89
return false ;
90
90
}
91
91
92
- loaded = true ;
92
+ valid = true ;
93
93
}
94
94
95
- return loaded ;
95
+ return valid ;
96
96
}
97
97
98
98
bool PipelineResMgr::open_and_parse_file (const std::filesystem::path& path, std::set<std::string>& existing_keys)
@@ -416,8 +416,8 @@ bool PipelineResMgr::parse_recognition(const json::value& input, Recognition::Ty
416
416
case Type::Custom:
417
417
out_param = CustomRecognizerParam {};
418
418
return parse_custom_recognition_param (input, std::get<CustomRecognizerParam>(out_param),
419
- same_type ? std::get<CustomRecognizerParam>(default_param)
420
- : CustomRecognizerParam {});
419
+ same_type ? std::get<CustomRecognizerParam>(default_param)
420
+ : CustomRecognizerParam {});
421
421
default :
422
422
LogError << " Unknown recognition" << VAR (static_cast <int >(out_type));
423
423
return false ;
@@ -607,8 +607,8 @@ bool PipelineResMgr::parse_ocrer_param(const json::value& input, MAA_VISION_NS::
607
607
}
608
608
609
609
bool PipelineResMgr::parse_custom_recognition_param (const json::value& input,
610
- MAA_VISION_NS::CustomRecognizerParam& output,
611
- const MAA_VISION_NS::CustomRecognizerParam& default_value)
610
+ MAA_VISION_NS::CustomRecognizerParam& output,
611
+ const MAA_VISION_NS::CustomRecognizerParam& default_value)
612
612
{
613
613
if (!get_and_check_value (input, " custom_recognition" , output.name , default_value.name ) &&
614
614
!get_and_check_value (input, " custom_recognizer" , output.name , default_value.name )) {
0 commit comments