summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-01 10:51:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-02 06:34:36 +0000
commit06eb947c1651cb623cd60d81b08281de4cc6a86b (patch)
treeac4583be05d0967149cc06f561b04b9abf587970 /xmloff/source/text/XMLSectionSourceDDEImportContext.cxx
parent9e9f52ad17a73f353b372bcdc9971443b961d39a (diff)
inline some constant strings in xmloff (part1)
Change-Id: I7971f210ffb30bdd80a1adde2c286b4d092bd053 Reviewed-on: https://gerrit.libreoffice.org/31433 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLSectionSourceDDEImportContext.cxx')
-rw-r--r--xmloff/source/text/XMLSectionSourceDDEImportContext.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx b/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx
index 08a2aaceb48c..753cb43b73a8 100644
--- a/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx
+++ b/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx
@@ -47,11 +47,7 @@ XMLSectionSourceDDEImportContext::XMLSectionSourceDDEImportContext(
const OUString& rLocalName,
Reference<XPropertySet> & rSectPropSet) :
SvXMLImportContext(rImport, nPrfx, rLocalName),
- rSectionPropertySet(rSectPropSet),
- sDdeCommandFile("DDECommandFile"),
- sDdeCommandType("DDECommandType"),
- sDdeCommandElement("DDECommandElement"),
- sIsAutomaticUpdate("IsAutomaticUpdate")
+ rSectionPropertySet(rSectPropSet)
{
}
@@ -125,23 +121,23 @@ void XMLSectionSourceDDEImportContext::StartElement(
// DDE not supported on all platforms; query property first
if (rSectionPropertySet->getPropertySetInfo()->
- hasPropertyByName(sDdeCommandFile))
+ hasPropertyByName("DDECommandFile"))
{
// use multi property set to force single update of connection #83654#
Sequence<OUString> aNames(4);
Sequence<Any> aValues(4);
aValues[0] <<= sApplication;
- aNames[0] = sDdeCommandFile;
+ aNames[0] = "DDECommandFile";
aValues[1] <<= sTopic;
- aNames[1] = sDdeCommandType;
+ aNames[1] = "DDECommandType";
aValues[2] <<= sItem;
- aNames[2] = sDdeCommandElement;
+ aNames[2] = "DDECommandElement";
aValues[3] <<= bAutomaticUpdate;
- aNames[3] = sIsAutomaticUpdate;
+ aNames[3] = "IsAutomaticUpdate";
Reference<XMultiPropertySet> rMultiPropSet(rSectionPropertySet,
UNO_QUERY);