Skip to content

Commit

Permalink
ximgproc: remove redundant move calls
Browse files Browse the repository at this point in the history
in test, detected by latest gcc.
  • Loading branch information
rurban committed Mar 28, 2024
1 parent d4f34fc commit f219962
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/ximgproc/test/test_sparse_match_interpolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Mat readOpticalFlow( const String& path )
Mat_<Point2f> flow;
std::ifstream file(path.c_str(), std::ios_base::binary);
if ( !file.good() )
return std::move(flow); // no file - return empty matrix
return flow; // no file - return empty matrix

float tag;
file.read((char*) &tag, sizeof(float));
if ( tag != FLOW_TAG_FLOAT )
return std::move(flow);
return flow;

int width, height;

Expand All @@ -44,14 +44,14 @@ Mat readOpticalFlow( const String& path )
if ( !file.good() )
{
flow.release();
return std::move(flow);
return flow;
}

flow(i, j) = u;
}
}
file.close();
return std::move(flow);
return flow;
}

CV_ENUM(GuideTypes, CV_8UC1, CV_8UC3)
Expand Down

0 comments on commit f219962

Please sign in to comment.