summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations/CustomAnimationList.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-12 11:54:45 +0200
committerNoel Grandin <noel@peralex.com>2016-04-12 11:54:45 +0200
commit9649026cf50533595c172cd81b96acd45603d86b (patch)
treee7dade92b6674fe445ab36492afc2db02a827f05 /sd/source/ui/animations/CustomAnimationList.cxx
parent6a8873c874db41e8818a74eb6bf2561dfdb296db (diff)
clang-tidy performance-unnecessary-value-param in sd
Change-Id: Id55410931305a9695a001977a5227b430a984e99
Diffstat (limited to 'sd/source/ui/animations/CustomAnimationList.cxx')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 0c64fededbdf..328478a47584 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -522,7 +522,7 @@ void CustomAnimationList::KeyInput( const KeyEvent& rKEvt )
/** selects or deselects the given effect.
Selections of other effects are not changed */
-void CustomAnimationList::select( CustomAnimationEffectPtr pEffect )
+void CustomAnimationList::select( const CustomAnimationEffectPtr& pEffect )
{
CustomAnimationListEntry* pEntry = static_cast< CustomAnimationListEntry* >(First());
while( pEntry )
@@ -551,7 +551,7 @@ void CustomAnimationList::clear()
mxLastTargetShape = nullptr;
}
-void CustomAnimationList::update( MainSequencePtr pMainSequence )
+void CustomAnimationList::update( const MainSequencePtr& pMainSequence )
{
if( mpMainSequence.get() )
mpMainSequence->removeListener( this );
@@ -566,11 +566,11 @@ void CustomAnimationList::update( MainSequencePtr pMainSequence )
struct stl_append_effect_func : public std::unary_function<CustomAnimationEffectPtr, void>
{
explicit stl_append_effect_func( CustomAnimationList& rList ) : mrList( rList ) {}
- void operator()(CustomAnimationEffectPtr pEffect);
+ void operator()(const CustomAnimationEffectPtr& pEffect);
CustomAnimationList& mrList;
};
-void stl_append_effect_func::operator()(CustomAnimationEffectPtr pEffect)
+void stl_append_effect_func::operator()(const CustomAnimationEffectPtr& pEffect)
{
mrList.append( pEffect );
}
@@ -790,7 +790,7 @@ void CustomAnimationList::append( CustomAnimationEffectPtr pEffect )
}
}
-void selectShape( SvTreeListBox* pTreeList, Reference< XShape > xShape )
+void selectShape( SvTreeListBox* pTreeList, const Reference< XShape >& xShape )
{
CustomAnimationListEntry* pEntry = static_cast< CustomAnimationListEntry* >(pTreeList->First());
while( pEntry )