From 7577ce1b1dc34f0b4a3264938cc5fe5e71670291 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Aug 2016 15:38:52 +0200 Subject: cid#1371168 Missing move assignment operator Change-Id: I986b94df4aa8158f3e0623ab6cb392c178a820ce --- vcl/source/font/font.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vcl/source/font') diff --git a/vcl/source/font/font.cxx b/vcl/source/font/font.cxx index e6b2682a3a95..c608fafbab44 100644 --- a/vcl/source/font/font.cxx +++ b/vcl/source/font/font.cxx @@ -52,6 +52,10 @@ Font::Font( const vcl::Font& rFont ) : mpImplFont( rFont.mpImplFont ) { } +Font::Font( vcl::Font&& rFont ) : mpImplFont( std::move(rFont.mpImplFont) ) +{ +} + Font::Font( const OUString& rFamilyName, const Size& rSize ) : mpImplFont() { mpImplFont->SetFamilyName( rFamilyName ); @@ -282,6 +286,12 @@ Font& Font::operator=( const vcl::Font& rFont ) return *this; } +Font& Font::operator=( vcl::Font&& rFont ) +{ + mpImplFont = std::move(rFont.mpImplFont); + return *this; +} + bool Font::operator==( const vcl::Font& rFont ) const { return mpImplFont == rFont.mpImplFont; -- cgit