summaryrefslogtreecommitdiff
path: root/vcl/source/font/font.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/font/font.cxx')
-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;