Commit 83fc27cb authored by Maksim Shabunin's avatar Maksim Shabunin
Browse files

Fixed warnings produced by clang-9.0.0

parent a17185c6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -101,9 +101,6 @@ class Call
	Call(const Call &) = default;
	Call(Call &&) = default;

	Call &operator=(const Call &) = default;
	Call &operator=(Call &&) = default;

	impl::CallMetaData metaData_;
	size_t id;
	QString calltype;
+4 −4
Original line number Diff line number Diff line
@@ -633,7 +633,7 @@ Mat FacemarkLBFImpl::BBox::project(const Mat &shape) const {
        res(i, 0) = (shape_(i, 0) - x_center) / x_scale;
        res(i, 1) = (shape_(i, 1) - y_center) / y_scale;
    }
    return res;
    return std::move(res);
}

// Project relative shape to absolute shape binding to this bbox
@@ -644,7 +644,7 @@ Mat FacemarkLBFImpl::BBox::reproject(const Mat &shape) const {
        res(i, 0) = shape_(i, 0)*x_scale + x_center;
        res(i, 1) = shape_(i, 1)*y_scale + y_center;
    }
    return res;
    return std::move(res);
}

Mat FacemarkLBFImpl::getMeanShape(std::vector<Mat> &gt_shapes, std::vector<BBox> &bboxes) {
@@ -1005,7 +1005,7 @@ Mat FacemarkLBFImpl::RandomForest::generateLBF(Mat &img, Mat &current_shape, BBo
            lbf_feat(i*trees_n + j) = (i*trees_n + j)*base + code;
        }
    }
    return lbf_feat;
    return std::move(lbf_feat);
}

void FacemarkLBFImpl::RandomForest::write(FileStorage fs, int k) {
@@ -1347,7 +1347,7 @@ Mat FacemarkLBFImpl::Regressor::globalRegressionPredict(const Mat &lbf, int stag
        for (int j = 0; j < lbf.cols; j++) y += w_ptr[lbf_ptr[j]];
        delta_shape(i, 1) = y;
    }
    return delta_shape;
    return std::move(delta_shape);
} // Regressor::globalRegressionPredict

Mat FacemarkLBFImpl::Regressor::predict(Mat &img, BBox &bbox) {
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ struct MACEImpl CV_FINAL : MACE {
        complexInput.copyTo(dftImg(Rect(0,0,IMGSIZE,IMGSIZE)));

        dft(dftImg, dftImg);
        return dftImg;
        return std::move(dftImg);
    }


+1 −1
Original line number Diff line number Diff line
@@ -603,7 +603,7 @@ public:
        node.setScale(value[0], value[1], value[2]);
    }

    void getEntityProperty(const String& name, int prop, OutputArray value)
    void getEntityProperty(const String& name, int prop, OutputArray value) CV_OVERRIDE
    {
        SceneNode& node = _getSceneNode(sceneMgr, name);
        switch(prop)
+2 −2
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ struct CubeSpheresScene : Scene
        Range range(0, frame.rows);
        parallel_for_(range, RenderInvoker<CubeSpheresScene>(frame, pose, reproj, depthFactor));

        return frame;
        return std::move(frame);
    }

    std::vector<Affine3f> getPoses() override
@@ -237,7 +237,7 @@ struct RotatingScene : Scene
        Range range(0, frame.rows);
        parallel_for_(range, RenderInvoker<RotatingScene>(frame, pose, reproj, depthFactor));

        return frame;
        return std::move(frame);
    }

    std::vector<Affine3f> getPoses() override
Loading