summaryrefslogtreecommitdiff
path: root/canvas/source/opengl/ogl_textlayout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/opengl/ogl_textlayout.cxx')
-rw-r--r--canvas/source/opengl/ogl_textlayout.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/canvas/source/opengl/ogl_textlayout.cxx b/canvas/source/opengl/ogl_textlayout.cxx
index 41962c8b1ea0..5eab3d9bcf13 100644
--- a/canvas/source/opengl/ogl_textlayout.cxx
+++ b/canvas/source/opengl/ogl_textlayout.cxx
@@ -9,6 +9,7 @@
#include <sal/config.h>
#include <sal/log.hxx>
+#include <utility>
#include <tools/diagnose_ex.h>
@@ -18,13 +19,13 @@ using namespace ::com::sun::star;
namespace oglcanvas
{
- TextLayout::TextLayout( const rendering::StringContext& aText,
- sal_Int8 nDirection,
- sal_Int64 /*nRandomSeed*/,
- const CanvasFont::ImplRef& rFont ) :
+ TextLayout::TextLayout( rendering::StringContext aText,
+ sal_Int8 nDirection,
+ sal_Int64 /*nRandomSeed*/,
+ CanvasFont::ImplRef rFont ) :
TextLayoutBaseT( m_aMutex ),
- maText( aText ),
- mpFont( rFont ),
+ maText(std::move( aText )),
+ mpFont(std::move( rFont )),
mnTextDirection( nDirection )
{
}