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

Fixed warnings produced by clang-9.0.0

This commit is contained in:
Maksim Shabunin
2019-01-28 14:48:00 +03:00
parent e2dbf054ac
commit ea3dc78986
6 changed files with 14 additions and 15 deletions
+4 -4
View File
@@ -52,12 +52,12 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
Mat_<Point2f> flow;
std::ifstream file(path.c_str(), std::ios_base::binary);
if ( !file.good() )
return flow; // no file - return empty matrix
return std::move(flow); // no file - return empty matrix
float tag;
file.read((char*) &tag, sizeof(float));
if ( tag != FLOW_TAG_FLOAT )
return flow;
return std::move(flow);
int width, height;
@@ -76,14 +76,14 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
if ( !file.good() )
{
flow.release();
return flow;
return std::move(flow);
}
flow(i, j) = u;
}
}
file.close();
return flow;
return std::move(flow);
}
CV_EXPORTS_W bool writeOpticalFlow( const String& path, InputArray flow )