summaryrefslogtreecommitdiff
path: root/canvas/source/cairo/cairo_canvasfont.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-21 17:59:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-21 21:55:31 +0200
commit08f757c32fc260c8857c1ff5cd44baf9aa8b8d03 (patch)
tree64324a10e445ea83252ff8ac64cb58476fb6a2cc /canvas/source/cairo/cairo_canvasfont.cxx
parent098df8583bc8d4a8d0210525f05f69b460386a46 (diff)
clang-tidy modernize-pass-by-value in canvas
Change-Id: Ib6e1b6182d83b09dbf5e2aeb9cf3e4ca11d9f48b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134712 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source/cairo/cairo_canvasfont.cxx')
-rw-r--r--canvas/source/cairo/cairo_canvasfont.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvasfont.cxx b/canvas/source/cairo/cairo_canvasfont.cxx
index cca052d167e0..36c1733ef62a 100644
--- a/canvas/source/cairo/cairo_canvasfont.cxx
+++ b/canvas/source/cairo/cairo_canvasfont.cxx
@@ -24,6 +24,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <rtl/math.hxx>
+#include <utility>
#include <vcl/metric.hxx>
#include "cairo_canvasfont.hxx"
@@ -37,13 +38,13 @@ namespace cairocanvas
CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
const uno::Sequence< beans::PropertyValue >& /*rExtraFontProperties*/,
const geometry::Matrix2D& rFontMatrix,
- const SurfaceProviderRef& rDevice ) :
+ SurfaceProviderRef rDevice ) :
CanvasFont_Base( m_aMutex ),
maFont( vcl::Font( rFontRequest.FontDescription.FamilyName,
rFontRequest.FontDescription.StyleName,
Size( 0, ::basegfx::fround(rFontRequest.CellSize) ) ) ),
maFontRequest( rFontRequest ),
- mpRefDevice( rDevice )
+ mpRefDevice(std::move( rDevice ))
{
maFont->SetAlignment( ALIGN_BASELINE );
maFont->SetCharSet( (rFontRequest.FontDescription.IsSymbolFont==css::util::TriState_YES) ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE );