mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Use std::move in Mat_<T> move constructors
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user