diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-04 16:57:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-04 16:57:24 +0200 |
commit | d010fbf353ab6f73741e4d1d9ea4bd3ba5301d90 (patch) | |
tree | 04fa23df0cf497fc5a33128d62f8e3f434e6a76d | |
parent | bc1096fed97baae496d2b16868a9d7e36017bc59 (diff) |
Actually delegate to Bitmap's move assign op
Change-Id: Ib57906ead469d64d324f3820c6f5d3c49ab4cd0a
-rw-r--r-- | include/vcl/alpha.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/alpha.hxx b/include/vcl/alpha.hxx index 738bd5a18e8a..9e3f49784bd5 100644 --- a/include/vcl/alpha.hxx +++ b/include/vcl/alpha.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_VCL_ALPHA_HXX #define INCLUDED_VCL_ALPHA_HXX +#include <sal/config.h> + +#include <utility> + #include <vcl/dllapi.h> #include <vcl/bitmap.hxx> @@ -40,7 +44,7 @@ public: AlphaMask& operator=( const Bitmap& rBitmap ); AlphaMask& operator=( const AlphaMask& rAlphaMask ) { return static_cast<AlphaMask&>( Bitmap::operator=( rAlphaMask ) ); } - AlphaMask& operator=( AlphaMask&& rAlphaMask ) { return static_cast<AlphaMask&>( Bitmap::operator=( rAlphaMask ) ); } + AlphaMask& operator=( AlphaMask&& rAlphaMask ) { return static_cast<AlphaMask&>( Bitmap::operator=( std::move(rAlphaMask) ) ); } bool operator!() const { return Bitmap::operator!(); } bool operator==( const AlphaMask& rAlphaMask ) const { return Bitmap::operator==( rAlphaMask ); } bool operator!=( const AlphaMask& rAlphaMask ) const { return Bitmap::operator!=( rAlphaMask ); } |