diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-25 15:23:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-29 09:23:46 +0200 |
commit | c455eb45aa2ff3cfd882c928f04d679fd68f073d (patch) | |
tree | 38a89330fe09a24ca217aa1aa37b1db86326f849 /vcl/source | |
parent | 3c127bc71d04167a731c4b58c77104e59d42dad7 (diff) |
cid#1371144 Missing move assignment operator
Change-Id: Ice8c22324700d51b86696fc3df140bb9f84973cb
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/wall.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx index 26b3448c50a0..8d336b2f0ef1 100644 --- a/vcl/source/gdi/wall.cxx +++ b/vcl/source/gdi/wall.cxx @@ -178,6 +178,11 @@ Wallpaper::Wallpaper( const Wallpaper& rWallpaper ) { } +Wallpaper::Wallpaper( Wallpaper&& rWallpaper ) + : mpImplWallpaper( std::move(rWallpaper.mpImplWallpaper) ) +{ +} + Wallpaper::Wallpaper( const Color& rColor ) : mpImplWallpaper() { mpImplWallpaper->maColor = rColor; @@ -396,6 +401,12 @@ Wallpaper& Wallpaper::operator=( const Wallpaper& rWallpaper ) return *this; } +Wallpaper& Wallpaper::operator=( Wallpaper&& rWallpaper ) +{ + mpImplWallpaper = std::move(rWallpaper.mpImplWallpaper); + return *this; +} + bool Wallpaper::operator==( const Wallpaper& rWallpaper ) const { return mpImplWallpaper == rWallpaper.mpImplWallpaper; |