Skip to content

Commit

Permalink
fix: 修复任务默认参数解析错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jun 12, 2024
1 parent 6c145d6 commit e1b035d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/MaaFramework/Resource/PipelineResMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ bool PipelineResMgr::parse_recognition(
return false;
}

static const std::unordered_map<std::string, Type> kRecTypeMap = {
const std::unordered_map<std::string, Type> kRecTypeMap = {
{ kDefaultRecognitionFlag, default_type },
{ "DirectHit", Type::DirectHit },
{ "directhit", Type::DirectHit },
Expand Down Expand Up @@ -668,7 +668,7 @@ bool PipelineResMgr::parse_feature_matcher_param(
LogError << "failed to get_and_check_value detector" << VAR(input);
return false;
}
static const std::unordered_map<std::string, FeatureMatcherParam::Detector> kDetectorMap = {
const std::unordered_map<std::string, FeatureMatcherParam::Detector> kDetectorMap = {
{ kDefaultDetectorFlag, default_value.detector },
{ "SIFT", FeatureMatcherParam::Detector::SIFT },
{ "sift", FeatureMatcherParam::Detector::SIFT },
Expand Down Expand Up @@ -1153,7 +1153,7 @@ bool PipelineResMgr::parse_order_of_result(
return false;
}

static const std::unordered_map<std::string, MAA_VISION_NS::ResultOrderBy> kOrderMap = {
const std::unordered_map<std::string, MAA_VISION_NS::ResultOrderBy> kOrderMap = {
{ kDefaultOrderFlag, default_value },
{ "Horizontal", MAA_VISION_NS::ResultOrderBy::Horizontal },
{ "horizontal", MAA_VISION_NS::ResultOrderBy::Horizontal },
Expand Down Expand Up @@ -1205,7 +1205,7 @@ bool PipelineResMgr::parse_action(
return false;
}

static const std::unordered_map<std::string, Type> kActTypeMap = {
const std::unordered_map<std::string, Type> kActTypeMap = {
{ kDefaultActionFlag, default_type },
{ "DoNothing", Type::DoNothing },
{ "donothing", Type::DoNothing },
Expand Down

0 comments on commit e1b035d

Please sign in to comment.