these arrays should be const

Change-Id: I808064abce15c4ec240d61e8168f0430ebf4c86c
Reviewed-on: https://gerrit.libreoffice.org/34722
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2017-02-28 15:10:25 +02:00
parent dd4ed25aae
commit 121525db24
2 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ enum XMLEffect
EK_stretch
};
extern SvXMLEnumMapEntry aXML_AnimationEffect_EnumMap[];
extern const SvXMLEnumMapEntry aXML_AnimationEffect_EnumMap[];
enum XMLEffectDirection
{
@@ -84,9 +84,9 @@ enum XMLEffectDirection
ED_cclockwise
};
extern SvXMLEnumMapEntry aXML_AnimationDirection_EnumMap[];
extern const SvXMLEnumMapEntry aXML_AnimationDirection_EnumMap[];
extern SvXMLEnumMapEntry aXML_AnimationSpeed_EnumMap[];
extern const SvXMLEnumMapEntry aXML_AnimationSpeed_EnumMap[];
void SdXMLImplSetEffect( css::presentation::AnimationEffect eEffect, XMLEffect& eKind, XMLEffectDirection& eDirection, sal_Int16& nStartScale, bool& bIn );
css::presentation::AnimationEffect ImplSdXMLgetEffect( XMLEffect eKind, XMLEffectDirection eDirection, sal_Int16 nStartScale, bool bIn );

View File

@@ -48,7 +48,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::presentation;
using namespace ::xmloff::token;
SvXMLEnumMapEntry aXML_AnimationEffect_EnumMap[] =
const SvXMLEnumMapEntry aXML_AnimationEffect_EnumMap[] =
{
{ XML_NONE, EK_none },
{ XML_FADE, EK_fade },
@@ -70,7 +70,7 @@ SvXMLEnumMapEntry aXML_AnimationEffect_EnumMap[] =
{ XML_TOKEN_INVALID, 0 }
};
SvXMLEnumMapEntry aXML_AnimationDirection_EnumMap[] =
const SvXMLEnumMapEntry aXML_AnimationDirection_EnumMap[] =
{
{ XML_NONE, ED_none },
{ XML_FROM_LEFT, ED_from_left },
@@ -103,7 +103,7 @@ SvXMLEnumMapEntry aXML_AnimationDirection_EnumMap[] =
{ XML_TOKEN_INVALID, 0 }
};
SvXMLEnumMapEntry aXML_AnimationSpeed_EnumMap[] =
const SvXMLEnumMapEntry aXML_AnimationSpeed_EnumMap[] =
{
{ XML_SLOW, AnimationSpeed_SLOW },
{ XML_MEDIUM, AnimationSpeed_MEDIUM },