summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-18 17:36:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-18 17:36:43 +0200
commitead6507f060caafb588861d8ec8aee82bd880e67 (patch)
tree30144897b71c5bcefa5567799014faaed285f906 /framework
parentClean up framework/inc/dispatchcommands.h (diff)
downloadcore-ead6507f060caafb588861d8ec8aee82bd880e67.tar.gz
core-ead6507f060caafb588861d8ec8aee82bd880e67.zip
Elide macro used once
Change-Id: Ie0ad7834f54a5bf9cea65b4bb6d7501a90da0f24
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/acceleratorconst.h2
-rw-r--r--framework/source/xml/acceleratorconfigurationwriter.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/inc/acceleratorconst.h b/framework/inc/acceleratorconst.h
index f4ac1b174ff2..03b0303504b8 100644
--- a/framework/inc/acceleratorconst.h
+++ b/framework/inc/acceleratorconst.h
@@ -24,8 +24,6 @@
namespace framework{
-#define DOCTYPE_ACCELERATORS "<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">"
-
#define ATTRIBUTE_TYPE_CDATA "CDATA"
#define XMLNS_XLINK "xlink"
diff --git a/framework/source/xml/acceleratorconfigurationwriter.cxx b/framework/source/xml/acceleratorconfigurationwriter.cxx
index 181acec82b64..48a45c120c77 100644
--- a/framework/source/xml/acceleratorconfigurationwriter.cxx
+++ b/framework/source/xml/acceleratorconfigurationwriter.cxx
@@ -60,7 +60,9 @@ void AcceleratorConfigurationWriter::flush()
// generate xml
xExtendedCFG->startDocument();
- xExtendedCFG->unknown(DOCTYPE_ACCELERATORS);
+ xExtendedCFG->unknown(
+ "<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD"
+ " OfficeDocument 1.0//EN\" \"accelerator.dtd\">");
xExtendedCFG->ignorableWhitespace(OUString());
xExtendedCFG->startElement(AL_ELEMENT_ACCELERATORLIST, xAttribs);