summaryrefslogtreecommitdiff
path: root/cppcanvas/source/wrapper/implsprite.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-02 15:48:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-02 17:43:27 +0200
commit859e0acc39c5353bc8ec2bafcf62d030bfb2bacd (patch)
tree9eb0735529aeb2b4a4576a25c4f10760bad2aeb8 /cppcanvas/source/wrapper/implsprite.cxx
parentb4163877e722298b42f6e96831bd8ffef7785a20 (diff)
clang-tidy modernize-pass-by-value in cppcanvas
Change-Id: I01e638c468f0941e042a839f73801a3ae3cb022a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135310 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source/wrapper/implsprite.cxx')
-rw-r--r--cppcanvas/source/wrapper/implsprite.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/cppcanvas/source/wrapper/implsprite.cxx b/cppcanvas/source/wrapper/implsprite.cxx
index c0450880d75d..66434f941271 100644
--- a/cppcanvas/source/wrapper/implsprite.cxx
+++ b/cppcanvas/source/wrapper/implsprite.cxx
@@ -21,6 +21,7 @@
#include <basegfx/utils/canvastools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <canvas/canvastools.hxx>
+#include <utility>
#include "implsprite.hxx"
@@ -31,10 +32,10 @@ namespace cppcanvas::internal
{
ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
- const uno::Reference< rendering::XSprite >& rSprite,
- const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
- mxSprite( rSprite ),
- mpTransformArbiter( rTransformArbiter )
+ uno::Reference< rendering::XSprite > rSprite,
+ ImplSpriteCanvas::TransformationArbiterSharedPtr xTransformArbiter ) :
+ mxSprite(std::move( rSprite )),
+ mpTransformArbiter(std::move( xTransformArbiter ))
{
// Avoiding ternary operator in initializer list (Solaris
// compiler bug, when function call and temporary is