[Libreoffice-commits] core.git: sw/source

Takeshi Abe tabe at fixedpoint.jp
Sun Jul 23 18:46:21 UTC 2017


 sw/source/filter/xml/xmltbli.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b0a0971d9f65168f9b82ec7a7ffaec9eea0b3e9e
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Jul 23 20:27:53 2017 +0900

    sw: these arrays are constant
    
    Change-Id: I15c49dc83f83dbc60b4a0db17183041aeaaa17fb
    Reviewed-on: https://gerrit.libreoffice.org/40321
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index d06f31b66d4f..243af1e295e0 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -100,7 +100,7 @@ enum SwXMLTableCellAttrTokens
     XML_TOK_TABLE_VALUE_TYPE,
 };
 
-static SvXMLTokenMapEntry aTableElemTokenMap[] =
+static const SvXMLTokenMapEntry aTableElemTokenMap[] =
 {
     { XML_NAMESPACE_TABLE, XML_TABLE_HEADER_COLUMNS,
             XML_TOK_TABLE_HEADER_COLS },
@@ -125,7 +125,7 @@ static SvXMLTokenMapEntry aTableElemTokenMap[] =
     XML_TOKEN_MAP_END
 };
 
-static SvXMLTokenMapEntry aTableCellAttrTokenMap[] =
+static const SvXMLTokenMapEntry aTableCellAttrTokenMap[] =
 {
     { XML_NAMESPACE_XML, XML_ID, XML_TOK_TABLE_XMLID },
     { XML_NAMESPACE_TABLE, XML_STYLE_NAME, XML_TOK_TABLE_STYLE_NAME },


More information about the Libreoffice-commits mailing list