summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-17 15:08:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-22 09:32:55 +0200
commitbe48e04b5bd51015595c0f0792a646c51164fd34 (patch)
tree3e54d8f8b1d88bf190d555561072d7d00159d028 /sw
parent29840e676927eb44c5857e854df283d58aae93c3 (diff)
Elide const vars
Change-Id: I1b2a7b071f9740e8c848f543e32fd47f054c8318
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/swg/SwXMLSectionList.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/swg/SwXMLSectionList.cxx b/sw/source/core/swg/SwXMLSectionList.cxx
index 05494d6fa47c..8e051f39c38f 100644
--- a/sw/source/core/swg/SwXMLSectionList.cxx
+++ b/sw/source/core/swg/SwXMLSectionList.cxx
@@ -25,21 +25,18 @@
using namespace ::com::sun::star;
using namespace ::xmloff::token;
-// TODO: verify if these should match the same-name constants
-// in xmloff/source/core/xmlimp.cxx ("_office" and "_office")
-sal_Char const sXML_np__office[] = "_ooffice";
-sal_Char const sXML_np__text[] = "_otext";
-
SwXMLSectionList::SwXMLSectionList(
const uno::Reference< uno::XComponentContext >& rContext,
std::vector<OUString*> &rNewSectionList)
: SvXMLImport( rContext, "" ),
rSectionList ( rNewSectionList )
{
- GetNamespaceMap().Add( sXML_np__office,
+ // TODO: verify if these should match the same-name constants
+ // in xmloff/source/core/xmlimp.cxx ("_office" and "_office")
+ GetNamespaceMap().Add( "_ooffice",
GetXMLToken(XML_N_OFFICE_OOO),
XML_NAMESPACE_OFFICE );
- GetNamespaceMap().Add( sXML_np__text,
+ GetNamespaceMap().Add( "_otext",
GetXMLToken(XML_N_TEXT_OOO),
XML_NAMESPACE_TEXT );
}