Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MatOp::augAssignAnd(const MatExpr& expr, Mat& m) const
- {
- Mat temp;
- expr.op->assign(expr, temp);
- m &= temp;
- }
- void MatOp::augAssignOr(const MatExpr& expr, Mat& m) const
- {
- Mat temp;
- expr.op->assign(expr, temp);
- m |= temp;
- }
- void MatOp::augAssignDivide(const MatExpr& expr, Mat& m) const
- {
- Mat temp;
- expr.op->assign(expr, temp);
- m /= temp;
- }
- void MatOp::augAssignXor(const MatExpr& expr, Mat& m) const
- {
- Mat temp;
- expr.op->assign(expr, temp);
- m /= temp;
- }
- This suspicious code was found in OpenCV project by PVS-Studio static code analyzer.
- Warning message is:
- V524 It is odd that the body of 'augAssignXor' function is fully equivalent to the body of 'augAssignDivide' function (matop.cpp, line 294). matop.cpp 318
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement