Skip to content

Commit cdd19eb

Browse files
mshabuninalalek
authored andcommitted
backport: Fixed warnings produced by clang-9.0.0
83fc27c
1 parent f5e493b commit cdd19eb

File tree

7 files changed

+15
-18
lines changed

7 files changed

+15
-18
lines changed

modules/cvv/src/impl/call.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ class Call
101101
Call(const Call &) = default;
102102
Call(Call &&) = default;
103103

104-
Call &operator=(const Call &) = default;
105-
Call &operator=(Call &&) = default;
106-
107104
impl::CallMetaData metaData_;
108105
size_t id;
109106
QString calltype;

modules/face/src/facemarkLBF.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ Mat FacemarkLBFImpl::BBox::project(const Mat &shape) const {
666666
res(i, 0) = (shape_(i, 0) - x_center) / x_scale;
667667
res(i, 1) = (shape_(i, 1) - y_center) / y_scale;
668668
}
669-
return res;
669+
return CV_CXX_MOVE(res);
670670
}
671671

672672
// Project relative shape to absolute shape binding to this bbox
@@ -677,7 +677,7 @@ Mat FacemarkLBFImpl::BBox::reproject(const Mat &shape) const {
677677
res(i, 0) = shape_(i, 0)*x_scale + x_center;
678678
res(i, 1) = shape_(i, 1)*y_scale + y_center;
679679
}
680-
return res;
680+
return CV_CXX_MOVE(res);
681681
}
682682

683683
Mat FacemarkLBFImpl::getMeanShape(std::vector<Mat> &gt_shapes, std::vector<BBox> &bboxes) {
@@ -1038,7 +1038,7 @@ Mat FacemarkLBFImpl::RandomForest::generateLBF(Mat &img, Mat &current_shape, BBo
10381038
lbf_feat(i*trees_n + j) = (i*trees_n + j)*base + code;
10391039
}
10401040
}
1041-
return lbf_feat;
1041+
return CV_CXX_MOVE(lbf_feat);
10421042
}
10431043

10441044
void FacemarkLBFImpl::RandomForest::write(FileStorage fs, int k) {
@@ -1380,7 +1380,7 @@ Mat FacemarkLBFImpl::Regressor::globalRegressionPredict(const Mat &lbf, int stag
13801380
for (int j = 0; j < lbf.cols; j++) y += w_ptr[lbf_ptr[j]];
13811381
delta_shape(i, 1) = y;
13821382
}
1383-
return delta_shape;
1383+
return CV_CXX_MOVE(delta_shape);
13841384
} // Regressor::globalRegressionPredict
13851385

13861386
Mat FacemarkLBFImpl::Regressor::predict(Mat &img, BBox &bbox) {

modules/face/src/mace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ struct MACEImpl CV_FINAL : MACE {
106106
complexInput.copyTo(dftImg(Rect(0,0,IMGSIZE,IMGSIZE)));
107107

108108
dft(dftImg, dftImg);
109-
return dftImg;
109+
return CV_CXX_MOVE(dftImg);
110110
}
111111

112112

modules/optflow/src/optical_flow_io.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
5555
Mat_<Point2f> flow;
5656
std::ifstream file(path.c_str(), std::ios_base::binary);
5757
if ( !file.good() )
58-
return flow; // no file - return empty matrix
58+
return CV_CXX_MOVE(flow); // no file - return empty matrix
5959

6060
float tag;
6161
file.read((char*) &tag, sizeof(float));
6262
if ( tag != FLOW_TAG_FLOAT )
63-
return flow;
63+
return CV_CXX_MOVE(flow);
6464

6565
int width, height;
6666

@@ -79,14 +79,14 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
7979
if ( !file.good() )
8080
{
8181
flow.release();
82-
return flow;
82+
return CV_CXX_MOVE(flow);
8383
}
8484

8585
flow(i, j) = u;
8686
}
8787
}
8888
file.close();
89-
return flow;
89+
return CV_CXX_MOVE(flow);
9090
}
9191
CV_EXPORTS_W bool writeOpticalFlow( const String& path, InputArray flow )
9292
{

modules/ovis/src/ovis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ class WindowSceneImpl : public WindowScene
604604
node.setScale(value[0], value[1], value[2]);
605605
}
606606

607-
void getEntityProperty(const String& name, int prop, OutputArray value)
607+
void getEntityProperty(const String& name, int prop, OutputArray value) CV_OVERRIDE
608608
{
609609
SceneNode& node = _getSceneNode(sceneMgr, name);
610610
switch(prop)

modules/sfm/src/numeric.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ skewMat( const Mat_<T> &x )
140140
x(2), 0 , -x(0),
141141
-x(1), x(0), 0;
142142

143-
return skew;
143+
return CV_CXX_MOVE(skew);
144144
}
145145

146146
Mat

modules/ximgproc/test/test_sparse_match_interpolator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Mat readOpticalFlow( const String& path )
2020
Mat_<Point2f> flow;
2121
std::ifstream file(path.c_str(), std::ios_base::binary);
2222
if ( !file.good() )
23-
return flow; // no file - return empty matrix
23+
return CV_CXX_MOVE(flow); // no file - return empty matrix
2424

2525
float tag;
2626
file.read((char*) &tag, sizeof(float));
2727
if ( tag != FLOW_TAG_FLOAT )
28-
return flow;
28+
return CV_CXX_MOVE(flow);
2929

3030
int width, height;
3131

@@ -44,14 +44,14 @@ Mat readOpticalFlow( const String& path )
4444
if ( !file.good() )
4545
{
4646
flow.release();
47-
return flow;
47+
return CV_CXX_MOVE(flow);
4848
}
4949

5050
flow(i, j) = u;
5151
}
5252
}
5353
file.close();
54-
return flow;
54+
return CV_CXX_MOVE(flow);
5555
}
5656

5757
CV_ENUM(GuideTypes, CV_8UC1, CV_8UC3)

0 commit comments

Comments
 (0)