summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations/CustomAnimationList.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 12:58:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-17 08:40:22 +0200
commit59f398e934541e05dc9b77c1191227f8c68ea037 (patch)
treef106d5a10252b63bda7d5eba057c977957e5f074 /sd/source/ui/animations/CustomAnimationList.cxx
parent21373c757315b05e77aab50d9fc5d57d70a77c14 (diff)
loplugin:unusedfields in sd
Change-Id: I01e6431279b71d0cff8f44614b3cad17f0f89460 Reviewed-on: https://gerrit.libreoffice.org/54452 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/animations/CustomAnimationList.cxx')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 59de6e7e1811..4f1b4eef4786 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -211,7 +211,6 @@ private:
OUString msDescription;
OUString msEffectName;
CustomAnimationEffectPtr mpEffect;
- const CustomAnimationPresets* mpCustomAnimationPresets;
static const long nIconWidth = 19;
static const long nItemMinHeight = 38;
};
@@ -222,7 +221,6 @@ CustomAnimationListEntryItem::CustomAnimationListEntryItem( const OUString& aDes
, msDescription( aDescription )
, msEffectName( OUString() )
, mpEffect(pEffect)
-, mpCustomAnimationPresets(&CustomAnimationPresets::getCustomAnimationPresets())
{
switch(mpEffect->getPresetClass())
{
@@ -235,7 +233,7 @@ CustomAnimationListEntryItem::CustomAnimationListEntryItem( const OUString& aDes
case EffectPresetClass::MOTIONPATH:
msEffectName = SdResId(STR_CUSTOMANIMATION_MOTION_PATHS); break;
}
- msEffectName = msEffectName.replaceFirst( "%1" , mpCustomAnimationPresets->getUINameForPresetId(mpEffect->getPresetId()));
+ msEffectName = msEffectName.replaceFirst( "%1" , CustomAnimationPresets::getCustomAnimationPresets().getUINameForPresetId(mpEffect->getPresetId()));
}
void CustomAnimationListEntryItem::InitViewData( SvTreeListBox* pView, SvTreeListEntry* pEntry, SvViewDataItem* pViewData )