summaryrefslogtreecommitdiff
path: root/canvas/source/tools/spriteredrawmanager.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/tools/spriteredrawmanager.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/tools/spriteredrawmanager.cxx')
-rw-r--r--canvas/source/tools/spriteredrawmanager.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/canvas/source/tools/spriteredrawmanager.cxx b/canvas/source/tools/spriteredrawmanager.cxx
index 25ec64254acc..d60646484056 100644
--- a/canvas/source/tools/spriteredrawmanager.cxx
+++ b/canvas/source/tools/spriteredrawmanager.cxx
@@ -28,6 +28,7 @@
#include <spriteredrawmanager.hxx>
#include <boost/range/adaptor/reversed.hpp>
+#include <utility>
namespace canvas
{
@@ -43,8 +44,8 @@ namespace canvas
class SpriteTracer
{
public:
- explicit SpriteTracer( const Sprite::Reference& rAffectedSprite ) :
- mpAffectedSprite(rAffectedSprite),
+ explicit SpriteTracer( Sprite::Reference rAffectedSprite ) :
+ mpAffectedSprite(std::move(rAffectedSprite)),
mbIsMove( false ),
mbIsGenericUpdate( false )
{