mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge pull request #15365 from Zyrin:3.4
This commit is contained in:
commit
c93e2ff81d
@ -1809,7 +1809,7 @@ Mat_<_Tp> Mat_<_Tp>::cross(const Mat_& m) const
|
||||
template<typename _Tp> template<typename T2> inline
|
||||
Mat_<_Tp>::operator Mat_<T2>() const
|
||||
{
|
||||
return Mat_<T2>(*this);
|
||||
return Mat_<T2>(static_cast<const Mat&>(*this));
|
||||
}
|
||||
|
||||
template<typename _Tp> inline
|
||||
@ -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