summaryrefslogtreecommitdiff
path: root/sd/source/core/EffectMigration.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-09 15:41:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-09 15:41:03 +0100
commit14fe0a66dac58c266a3327babe36c902075c4ac0 (patch)
tree4e0e3f1f6cc43a9277598c4c882a45e29cd335cc /sd/source/core/EffectMigration.cxx
parent86dfe7724accd0e291570c9546d4ddc38974ba32 (diff)
New loplugin:externvar: sd
Change-Id: I753a49c35c0a459f110960c56ac345f8bfc79dee
Diffstat (limited to 'sd/source/core/EffectMigration.cxx')
-rw-r--r--sd/source/core/EffectMigration.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/core/EffectMigration.cxx b/sd/source/core/EffectMigration.cxx
index 2348381bcb9d..6efe7124df66 100644
--- a/sd/source/core/EffectMigration.cxx
+++ b/sd/source/core/EffectMigration.cxx
@@ -52,7 +52,7 @@ struct deprecated_FadeEffect_conversion_table_entry
const sal_Char* mpPresetId;
}
-deprecated_FadeEffect_conversion_table[] =
+const deprecated_FadeEffect_conversion_table[] =
{
// OOo 1.x transitions
{ FadeEffect_FADE_FROM_LEFT, "wipe-right" },
@@ -160,7 +160,7 @@ wedge wedge
void EffectMigration::SetFadeEffect( SdPage* pPage, css::presentation::FadeEffect eNewEffect)
{
- deprecated_FadeEffect_conversion_table_entry* pEntry = deprecated_FadeEffect_conversion_table;
+ deprecated_FadeEffect_conversion_table_entry const * pEntry = deprecated_FadeEffect_conversion_table;
while( (pEntry->meFadeEffect != FadeEffect_NONE) && (pEntry->meFadeEffect != eNewEffect) )
pEntry++;
@@ -207,7 +207,7 @@ FadeEffect EffectMigration::GetFadeEffect( const SdPage* pPage )
{
const OUString& aPresetId = (*aIt)->getPresetId();
- deprecated_FadeEffect_conversion_table_entry* pEntry = deprecated_FadeEffect_conversion_table;
+ deprecated_FadeEffect_conversion_table_entry const * pEntry = deprecated_FadeEffect_conversion_table;
while( (pEntry->meFadeEffect != FadeEffect_NONE) && (!aPresetId.equalsAscii( pEntry->mpPresetId ) ) )
pEntry++;
@@ -223,7 +223,7 @@ struct deprecated_AnimationEffect_conversion_table_entry
const sal_Char* mpPresetId;
const sal_Char* mpPresetSubType;
}
-deprecated_AnimationEffect_conversion_table[] =
+const deprecated_AnimationEffect_conversion_table[] =
{
// OOo 1.x entrance effects
{ AnimationEffect_APPEAR, "ooo-entrance-appear",nullptr },
@@ -746,7 +746,7 @@ bool EffectMigration::ConvertPreset( const OUString& rPresetId, const OUString*
if( !rPresetId.isEmpty() )
{
// first try a match for preset id and subtype
- deprecated_AnimationEffect_conversion_table_entry* p = deprecated_AnimationEffect_conversion_table;
+ deprecated_AnimationEffect_conversion_table_entry const * p = deprecated_AnimationEffect_conversion_table;
while( p->mpPresetId )
{
if( rPresetId.equalsAscii( p->mpPresetId ) &&
@@ -770,7 +770,7 @@ bool EffectMigration::ConvertPreset( const OUString& rPresetId, const OUString*
bool EffectMigration::ConvertAnimationEffect( const AnimationEffect& rEffect, OUString& rPresetId, OUString& rPresetSubType )
{
- deprecated_AnimationEffect_conversion_table_entry* p = deprecated_AnimationEffect_conversion_table;
+ deprecated_AnimationEffect_conversion_table_entry const * p = deprecated_AnimationEffect_conversion_table;
while( p->mpPresetId )
{
if( p->meEffect == rEffect )