fix: 修复 linux 下的一些 errors

This commit is contained in:
zzyyyl
2022-07-31 21:56:21 +08:00
parent d0b752d719
commit d80f37f4a6
2 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ friend Point& operator Op##= (Point& val, const Point& opd) noexcept { val.x Op#
~TextRect() = default;
TextRect(const TextRect&) = default;
TextRect(TextRect&&) noexcept = default;
explicit TextRect(double score, const Rect& rect, const std::string& text)
TextRect(double score, const Rect& rect, const std::string& text)
: score(score), rect(rect), text(text)
{}
@@ -181,7 +181,7 @@ friend Point& operator Op##= (Point& val, const Point& opd) noexcept { val.x Op#
~MatchRect() = default;
MatchRect(const MatchRect&) = default;
MatchRect(MatchRect&&) noexcept = default;
explicit MatchRect(double score, const Rect& rect)
MatchRect(double score, const Rect& rect)
: score(score), rect(rect)
{}

View File

@@ -140,7 +140,7 @@ bool asst::MultiMatchImageAnalyzer::multi_match_templ(const cv::Mat templ)
}
}
if (need_push) {
m_result.emplace_back(MatchRect{ value, rect });
m_result.emplace_back(value, rect);
}
}
}