diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 15:13:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 07:57:37 +0200 |
commit | e65506968f98340522df9af1a2bfa7ab736bdc45 (patch) | |
tree | d3a21b4263d3bdd1960250c23f447fc8b176a08e /sd/source/ui/animations | |
parent | a8aafaee134eb82e033175a820096d72205ce5e5 (diff) |
loplugin:unuseddefaultparam in sd
Change-Id: Ic1bb6903a7e4d4aae44b0a2a21a46590d5b4027f
Diffstat (limited to 'sd/source/ui/animations')
-rw-r--r-- | sd/source/ui/animations/CategoryListBox.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/animations/CategoryListBox.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/animations/CustomAnimationList.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/animations/CustomAnimationList.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/animations/STLPropertySet.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/animations/STLPropertySet.hxx | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/ui/animations/CategoryListBox.cxx b/sd/source/ui/animations/CategoryListBox.cxx index 93364d48b52d..1fba84529482 100644 --- a/sd/source/ui/animations/CategoryListBox.cxx +++ b/sd/source/ui/animations/CategoryListBox.cxx @@ -15,9 +15,9 @@ CategoryListBox::~CategoryListBox() { } -sal_Int32 CategoryListBox::InsertCategory( const OUString& rStr, sal_Int32 nPos /* = LISTBOX_APPEND */ ) +sal_Int32 CategoryListBox::InsertCategory( const OUString& rStr ) { - sal_Int32 n = ListBox::InsertEntry( rStr, nPos ); + sal_Int32 n = ListBox::InsertEntry( rStr ); if( n != LISTBOX_ENTRY_NOTFOUND ) ListBox::SetEntryFlags( n, ListBox::GetEntryFlags(n) | ListBoxEntryFlags::DisableSelection ); diff --git a/sd/source/ui/animations/CategoryListBox.hxx b/sd/source/ui/animations/CategoryListBox.hxx index fa29b4abea5b..aace8a448af0 100644 --- a/sd/source/ui/animations/CategoryListBox.hxx +++ b/sd/source/ui/animations/CategoryListBox.hxx @@ -14,7 +14,7 @@ public: virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE; - sal_Int32 InsertCategory( const OUString& rStr, sal_Int32 nPos = LISTBOX_APPEND ); + sal_Int32 InsertCategory( const OUString& rStr ); DECL_LINK_TYPED(implDoubleClickHdl, ListBox&, void); diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx index 16c05d4f5699..a8cc25ec919a 100644 --- a/sd/source/ui/animations/CustomAnimationList.cxx +++ b/sd/source/ui/animations/CustomAnimationList.cxx @@ -487,21 +487,21 @@ void CustomAnimationList::KeyInput( const KeyEvent& rKEvt ) /** selects or deselects the given effect. Selections of other effects are not changed */ -void CustomAnimationList::select( CustomAnimationEffectPtr pEffect, bool bSelect /* = true */ ) +void CustomAnimationList::select( CustomAnimationEffectPtr pEffect ) { CustomAnimationListEntry* pEntry = static_cast< CustomAnimationListEntry* >(First()); while( pEntry ) { if( pEntry->getEffect() == pEffect ) { - Select( pEntry, bSelect ); + Select( pEntry ); MakeVisible( pEntry ); break; } pEntry = static_cast< CustomAnimationListEntry* >(Next( pEntry )); } - if( !pEntry && bSelect ) + if( !pEntry ) { append( pEffect ); select( pEffect ); diff --git a/sd/source/ui/animations/CustomAnimationList.hxx b/sd/source/ui/animations/CustomAnimationList.hxx index 58f6153f2e7b..376934509790 100644 --- a/sd/source/ui/animations/CustomAnimationList.hxx +++ b/sd/source/ui/animations/CustomAnimationList.hxx @@ -58,7 +58,7 @@ public: /** selects or deselects the given effect. Selections of other effects are not changed */ - void select( CustomAnimationEffectPtr pEffect, bool bSelect = true ); + void select( CustomAnimationEffectPtr pEffect ); /** populates the list with all effects from the given MainSequence */ void update( MainSequencePtr pMainSequence ); diff --git a/sd/source/ui/animations/STLPropertySet.cxx b/sd/source/ui/animations/STLPropertySet.cxx index 9044c0204226..ea339af5eb33 100644 --- a/sd/source/ui/animations/STLPropertySet.cxx +++ b/sd/source/ui/animations/STLPropertySet.cxx @@ -42,7 +42,7 @@ void STLPropertySet::setPropertyDefaultValue( sal_Int32 nHandle, const Any& rVal maPropertyMap[ nHandle ] = aEntry; } -void STLPropertySet::setPropertyValue( sal_Int32 nHandle, const Any& rValue, sal_Int32 /* nState = STLPropertyState_DIRECT */ ) +void STLPropertySet::setPropertyValue( sal_Int32 nHandle, const Any& rValue ) { PropertyMapIter aIter; if( findProperty( nHandle, aIter ) ) diff --git a/sd/source/ui/animations/STLPropertySet.hxx b/sd/source/ui/animations/STLPropertySet.hxx index 10606534f720..54665cc781d8 100644 --- a/sd/source/ui/animations/STLPropertySet.hxx +++ b/sd/source/ui/animations/STLPropertySet.hxx @@ -55,7 +55,7 @@ public: ~STLPropertySet(); void setPropertyDefaultValue( sal_Int32 nHandle, const css::uno::Any& rValue ); - void setPropertyValue( sal_Int32 nHandle, const css::uno::Any& rValue, sal_Int32 nState = STLPropertyState_DIRECT ); + void setPropertyValue( sal_Int32 nHandle, const css::uno::Any& rValue ); css::uno::Any getPropertyValue( sal_Int32 nHandle ) const; sal_Int32 getPropertyState( sal_Int32 nHandle ) const; |