coverity#1371159 Missing move assignment operator
Change-Id: I1470d6a27cb5ee5a98ddb13f4f12cb0b7289b282
This commit is contained in:
@@ -247,6 +247,7 @@ public:
|
||||
virtual ~Bitmap();
|
||||
|
||||
Bitmap& operator=( const Bitmap& rBitmap );
|
||||
Bitmap& operator=( Bitmap&& rBitmap );
|
||||
inline bool operator!() const;
|
||||
inline bool operator==( const Bitmap& rBitmap ) const;
|
||||
inline bool operator!=( const Bitmap& rBitmap ) const;
|
||||
|
@@ -230,6 +230,15 @@ Bitmap& Bitmap::operator=( const Bitmap& rBitmap )
|
||||
return *this;
|
||||
}
|
||||
|
||||
Bitmap& Bitmap::operator=( Bitmap&& rBitmap )
|
||||
{
|
||||
maPrefSize = std::move(rBitmap.maPrefSize);
|
||||
maPrefMapMode = std::move(rBitmap.maPrefMapMode);
|
||||
mxImpBmp = std::move(rBitmap.mxImpBmp);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool Bitmap::IsEqual( const Bitmap& rBmp ) const
|
||||
{
|
||||
return(IsSameInstance(rBmp) || // Includes both are nullptr
|
||||
|
Reference in New Issue
Block a user