summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-25 15:38:52 +0200
committerNoel Grandin <noel@peralex.com>2016-08-29 09:23:46 +0200
commit7577ce1b1dc34f0b4a3264938cc5fe5e71670291 (patch)
treeffe203dbe229c57db5e9edcec12ca013e13f5c95 /vcl/source/font
parentae23dca9847e7f456d39ae8e71b433531eba1eb3 (diff)
cid#1371168 Missing move assignment operator
Change-Id: I986b94df4aa8158f3e0623ab6cb392c178a820ce
Diffstat (limited to 'vcl/source/font')
-rw-r--r--vcl/source/font/font.cxx10
1 files changed, 10 insertions, 0 deletions
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;