summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations/CustomAnimationList.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-18 12:27:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-18 14:24:11 +0100
commit4630157e29f565c110f4fa11223a2d2358508c26 (patch)
treef27b9b6e953ec3ae433172229a596ab0bdc9d934 /sd/source/ui/animations/CustomAnimationList.cxx
parent8a6eb111609fbb1e0270ef5ba475b027635c9749 (diff)
cppcheck: passedByValue
Change-Id: I3ffcfe1294a1cbb06aadd3a1a79e9259876e38cc
Diffstat (limited to 'sd/source/ui/animations/CustomAnimationList.cxx')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index ca08e350fc9a..d14f670702d2 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -202,7 +202,7 @@ class CustomAnimationListEntryItem : public SvLBoxString
{
public:
CustomAnimationListEntryItem(const OUString& aDescription,
- CustomAnimationEffectPtr pEffect, CustomAnimationList* pParent);
+ const CustomAnimationEffectPtr& pEffect, CustomAnimationList* pParent);
virtual ~CustomAnimationListEntryItem();
void InitViewData(SvTreeListBox*,SvTreeListEntry*,SvViewDataItem* = nullptr) override;
SvLBoxItem* Create() const override;
@@ -220,7 +220,7 @@ private:
const long nItemMinHeight = 38;
};
-CustomAnimationListEntryItem::CustomAnimationListEntryItem( const OUString& aDescription, CustomAnimationEffectPtr pEffect, CustomAnimationList* pParent )
+CustomAnimationListEntryItem::CustomAnimationListEntryItem( const OUString& aDescription, const CustomAnimationEffectPtr& pEffect, CustomAnimationList* pParent )
: SvLBoxString( aDescription )
, mpParent( pParent )
, msDescription( aDescription )
@@ -349,7 +349,7 @@ class CustomAnimationListEntry : public SvTreeListEntry
{
public:
CustomAnimationListEntry();
- explicit CustomAnimationListEntry( CustomAnimationEffectPtr pEffect );
+ explicit CustomAnimationListEntry(const CustomAnimationEffectPtr& pEffect);
virtual ~CustomAnimationListEntry();
const CustomAnimationEffectPtr& getEffect() const { return mpEffect; }
@@ -362,7 +362,7 @@ CustomAnimationListEntry::CustomAnimationListEntry()
{
}
-CustomAnimationListEntry::CustomAnimationListEntry( CustomAnimationEffectPtr pEffect )
+CustomAnimationListEntry::CustomAnimationListEntry(const CustomAnimationEffectPtr& pEffect)
: mpEffect( pEffect )
{
}