summaryrefslogtreecommitdiff
path: root/sd/inc/CustomAnimationPreset.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-10 10:41:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-11 09:25:39 +0200
commit7b5aa0704734da79c0c9a89479d2c1d9e19ef20a (patch)
treef8400a17588af146b9d9109a3ca7b05fa2982ba4 /sd/inc/CustomAnimationPreset.hxx
parent2de74491a5a7b2183cce977f8ffaf81d0df11d75 (diff)
clang-tidy modernize-pass-by-value in sd
Change-Id: Ic1e641b1a9373e3ae8da09436b0e8e7b852bede7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138082 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/inc/CustomAnimationPreset.hxx')
-rw-r--r--sd/inc/CustomAnimationPreset.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/inc/CustomAnimationPreset.hxx b/sd/inc/CustomAnimationPreset.hxx
index b746b20b7f83..c262ad059531 100644
--- a/sd/inc/CustomAnimationPreset.hxx
+++ b/sd/inc/CustomAnimationPreset.hxx
@@ -21,6 +21,7 @@
#include <sal/config.h>
+#include <utility>
#include <vector>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
@@ -75,8 +76,8 @@ struct PresetCategory
OUString maLabel;
EffectDescriptorList maEffects;
- PresetCategory( const OUString& rLabel, EffectDescriptorList&& rEffects )
- : maLabel( rLabel ), maEffects( std::move(rEffects) ) {}
+ PresetCategory( OUString aLabel, EffectDescriptorList&& rEffects )
+ : maLabel(std::move( aLabel )), maEffects( std::move(rEffects) ) {}
};
typedef std::shared_ptr< PresetCategory > PresetCategoryPtr;
typedef std::vector< PresetCategoryPtr > PresetCategoryList;