summaryrefslogtreecommitdiff
path: root/xmloff/source/style
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-07-24 23:33:29 +0900
committerMichael Stahl <mstahl@redhat.com>2017-07-26 20:44:20 +0200
commitf30530229bb47c373fb99bb3f90bac77d5c8a116 (patch)
tree1bd89236408e73214cf7679568315879bdb67d0b /xmloff/source/style
parentb115c1cd99b167600158665a5b0dff4c90a21b55 (diff)
Mark SvXMLTokenMapEntry arrays as constant
Change-Id: I37565540ec5dc3bfddf6cdeb20447f837e3014b6 Reviewed-on: https://gerrit.libreoffice.org/40374 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'xmloff/source/style')
-rw-r--r--xmloff/source/style/DashStyle.cxx2
-rw-r--r--xmloff/source/style/xmlstyle.cxx2
-rw-r--r--xmloff/source/style/xmltabi.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/DashStyle.cxx b/xmloff/source/style/DashStyle.cxx
index bbb49ba29945..f68e535d7ebc 100644
--- a/xmloff/source/style/DashStyle.cxx
+++ b/xmloff/source/style/DashStyle.cxx
@@ -50,7 +50,7 @@ enum SvXMLTokenMapAttrs
XML_TOK_DASH_DISTANCE,
};
-static SvXMLTokenMapEntry aDashStyleAttrTokenMap[] =
+static const SvXMLTokenMapEntry aDashStyleAttrTokenMap[] =
{
{ XML_NAMESPACE_DRAW, XML_NAME, XML_TOK_DASH_NAME },
{ XML_NAMESPACE_DRAW, XML_DISPLAY_NAME, XML_TOK_DASH_DISPLAY_NAME },
diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx
index a44a04321b62..40014f2c6bbe 100644
--- a/xmloff/source/style/xmlstyle.cxx
+++ b/xmloff/source/style/xmlstyle.cxx
@@ -63,7 +63,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::style;
using namespace ::xmloff::token;
-static SvXMLTokenMapEntry aStyleStylesElemTokenMap[] =
+static const SvXMLTokenMapEntry aStyleStylesElemTokenMap[] =
{
{ XML_NAMESPACE_STYLE, XML_STYLE, XML_TOK_STYLE_STYLE },
{ XML_NAMESPACE_STYLE, XML_PAGE_LAYOUT, XML_TOK_STYLE_PAGE_MASTER },
diff --git a/xmloff/source/style/xmltabi.cxx b/xmloff/source/style/xmltabi.cxx
index 0e4c1ca665b5..b7efacba6027 100644
--- a/xmloff/source/style/xmltabi.cxx
+++ b/xmloff/source/style/xmltabi.cxx
@@ -43,7 +43,7 @@ enum SvXMLTokenMapAttrs
XML_TOK_TABSTOP_LEADER_TEXT
};
-static SvXMLTokenMapEntry aTabsAttributesAttrTokenMap[] =
+static const SvXMLTokenMapEntry aTabsAttributesAttrTokenMap[] =
{
{ XML_NAMESPACE_STYLE, XML_POSITION, XML_TOK_TABSTOP_POSITION },
{ XML_NAMESPACE_STYLE, XML_TYPE, XML_TOK_TABSTOP_TYPE },