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

pull/15365/head
Zyrin 6 years ago
parent 8ef8088686
commit 869ea22f34
  1. 4
      modules/core/include/opencv2/core/mat.inl.hpp

@ -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

Loading…
Cancel
Save