1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

remove const from functions returning by value

This commit is contained in:
Namgoo Lee
2022-05-26 21:30:41 +09:00
parent 08c270f65a
commit 24547f40ff
13 changed files with 20 additions and 20 deletions
@@ -181,7 +181,7 @@ template<> struct fluid_get_in<cv::GMat>
template<> struct fluid_get_in<cv::GScalar>
{
// FIXME: change to return by reference when moved to own::Scalar
static const cv::Scalar get(const cv::GArgs &in_args, int idx)
static cv::Scalar get(const cv::GArgs &in_args, int idx)
{
return in_args[idx].unsafe_get<cv::Scalar>();
}
@@ -89,7 +89,7 @@ inline Rect& operator&=(Rect& lhs, const Rect& rhs)
return lhs;
}
inline const Rect operator&(const Rect& lhs, const Rect& rhs)
inline Rect operator&(const Rect& lhs, const Rect& rhs)
{
Rect result = lhs;
return result &= rhs;