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

Use std::move in Mat_<T> move constructors

This commit is contained in:
Zyrin
2019-08-21 11:12:00 +02:00
parent 8ef8088686
commit 869ea22f34
@@ -2103,7 +2103,7 @@ void Mat_<_Tp>::forEach(const Functor& operation) const {
template<typename _Tp> inline
Mat_<_Tp>::Mat_(Mat_&& m)
: Mat(m)
: Mat(std::move(m))
{
}
@@ -2119,7 +2119,7 @@ Mat_<_Tp>::Mat_(Mat&& m)
: Mat()
{
flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<_Tp>::value;
*this = m;
*this = std::move(m);
}
template<typename _Tp> inline