diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-04 15:26:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-04 16:53:19 +0100 |
commit | c5653039412114a14eb0b53e6e1ca26efaf468cd (patch) | |
tree | 065094d5c161602f59a2f7c367347a2c4c265be3 /vcl/source/image | |
parent | 27be36b66cc55886c47f0f424a354056392f75d0 (diff) |
coverity#1371167 Missing move assignment operator
Change-Id: I95bafeb32b0444bf387efc1f6a56018975f09f29
Diffstat (limited to 'vcl/source/image')
-rw-r--r-- | vcl/source/image/Image.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/image/Image.cxx b/vcl/source/image/Image.cxx index 20c37772210c..de1774efed29 100644 --- a/vcl/source/image/Image.cxx +++ b/vcl/source/image/Image.cxx @@ -201,6 +201,12 @@ Image& Image::operator=( const Image& rImage ) return *this; } +Image& Image::operator=( Image&& rImage ) +{ + std::swap(mpImplData, rImage.mpImplData); + return *this; +} + bool Image::operator==(const Image& rImage) const { bool bRet = false; |