Skip to content

Commit 4f31759

Browse files
committed
prevent copying in cv::Mat_<T> move assignment
1 parent 7dd3723 commit 4f31759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/include/opencv2/core/mat.inl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ Mat_<_Tp>::Mat_(Mat_&& m)
18181818
template<typename _Tp> inline
18191819
Mat_<_Tp>& Mat_<_Tp>::operator = (Mat_&& m)
18201820
{
1821-
Mat::operator = (m);
1821+
Mat::operator = (std::move(m));
18221822
return *this;
18231823
}
18241824

0 commit comments

Comments
 (0)