diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-03 09:59:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 00:51:57 +0000 |
commit | c6223049651d6607101ef04271773e478a429c8a (patch) | |
tree | f2bfb8c976896009409ae47780c324d3a9b51c77 /sd/source/ui | |
parent | 242ed97d9a74a08363e1306452bba20f06d673e4 (diff) |
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationList.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/animations/CustomAnimationList.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx index c29cd2e7b85e..c7f62dad3a59 100644 --- a/sd/source/ui/animations/CustomAnimationList.cxx +++ b/sd/source/ui/animations/CustomAnimationList.cxx @@ -756,15 +756,15 @@ void selectShape( SvTreeListBox* pTreeList, Reference< XShape > xShape ) } } -void CustomAnimationList::onSelectionChanged( Any aSelection ) +void CustomAnimationList::onSelectionChanged(const Any& rSelection) { try { SelectAll(false); - if( aSelection.hasValue() ) + if (rSelection.hasValue()) { - Reference< XIndexAccess > xShapes( aSelection, UNO_QUERY ); + Reference< XIndexAccess > xShapes(rSelection, UNO_QUERY); if( xShapes.is() ) { sal_Int32 nCount = xShapes->getCount(); @@ -778,7 +778,7 @@ void CustomAnimationList::onSelectionChanged( Any aSelection ) } else { - Reference< XShape > xShape( aSelection, UNO_QUERY ); + Reference< XShape > xShape(rSelection, UNO_QUERY); if( xShape.is() ) selectShape( this, xShape ); } diff --git a/sd/source/ui/animations/CustomAnimationList.hxx b/sd/source/ui/animations/CustomAnimationList.hxx index a8a022e15020..b28f4cf138c5 100644 --- a/sd/source/ui/animations/CustomAnimationList.hxx +++ b/sd/source/ui/animations/CustomAnimationList.hxx @@ -63,7 +63,7 @@ public: EffectSequence getSelection() const; // events - void onSelectionChanged( ::com::sun::star::uno::Any aSelection ); + void onSelectionChanged(const css::uno::Any& rSelection); // overrides virtual void SelectHdl() SAL_OVERRIDE; |