Kaydet (Commit) 3503873c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticmethods

Change-Id: I04b15122e73c527fbc695687079f6093ebcb5a5f
üst 1bea36dd
......@@ -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 )
{
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment