diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-11 11:00:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-11 11:00:23 +0100 |
commit | 3503873c7b54c013e7cfe8f73ce8485862348592 (patch) | |
tree | 95d6fbd2e601c07265f0220fe17e488f21a63e89 /sd | |
parent | 1bea36ddadae18a66d2e6043681b5b6fa37e4da1 (diff) |
loplugin:staticmethods
Change-Id: I04b15122e73c527fbc695687079f6093ebcb5a5f
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/animations/SlideTransitionPane.cxx | 34 | ||||
-rw-r--r-- | sd/source/ui/animations/SlideTransitionPane.hxx | 1 |
2 files changed, 17 insertions, 18 deletions
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx index 536df3186f61..dc16de9c2a5b 100644 --- a/sd/source/ui/animations/SlideTransitionPane.cxx +++ b/sd/source/ui/animations/SlideTransitionPane.cxx @@ -356,6 +356,23 @@ void lcl_FillSoundListBox( lcl_AppendSoundToListBox( rOutListBox )); } +/// Returns an offset into the list of transition presets +size_t getPresetOffset( const sd::impl::TransitionEffect &rEffect ) +{ + const sd::TransitionPresetList& rPresetList = + sd::TransitionPreset::getTransitionPresetList(); + sd::TransitionPresetPtr pFound; + + size_t nIdx = 0; + for( auto aIt: rPresetList ) + { + if( rEffect.operator==( *aIt )) + break; + nIdx++; + } + return nIdx; +} + } // anonymous namespace namespace sd @@ -997,23 +1014,6 @@ IMPL_LINK_NOARG_TYPED(SlideTransitionPane, TransitionSelected, ValueSet *, void) applyToSelectedPages(); } -/// Returns an offset into the list of transition presets -size_t SlideTransitionPane::getPresetOffset( const impl::TransitionEffect &rEffect ) -{ - const sd::TransitionPresetList& rPresetList = - sd::TransitionPreset::getTransitionPresetList(); - sd::TransitionPresetPtr pFound; - - size_t nIdx = 0; - for( auto aIt: rPresetList ) - { - if( rEffect.operator==( *aIt )) - break; - nIdx++; - } - return nIdx; -} - /// we use an integer offset into the list of transition presets void SlideTransitionPane::updateVariants( size_t nPresetOffset ) { diff --git a/sd/source/ui/animations/SlideTransitionPane.hxx b/sd/source/ui/animations/SlideTransitionPane.hxx index c52344716f24..6a4574632aec 100644 --- a/sd/source/ui/animations/SlideTransitionPane.hxx +++ b/sd/source/ui/animations/SlideTransitionPane.hxx @@ -71,7 +71,6 @@ private: void updateControls(); void updateControlState(); void updateVariants(size_t nPresetOffset); - size_t getPresetOffset(const impl::TransitionEffect &rEffect); void updateSoundList(); void openSoundFileDialog(); |