summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLIndexTitleTemplateContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexTitleTemplateContext.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLIndexTitleTemplateContext.cxx b/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
index 4530be7efdc4..2b05e69bc1ed 100644
--- a/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
+++ b/xmloff/source/text/XMLIndexTitleTemplateContext.cxx
@@ -39,8 +39,6 @@ XMLIndexTitleTemplateContext::XMLIndexTitleTemplateContext(
sal_uInt16 nPrfx,
const OUString& rLocalName)
: SvXMLImportContext(rImport, nPrfx, rLocalName)
-, sTitle("Title")
-, sParaStyleHeading("ParaStyleHeading")
, bStyleNameOK(false)
, rTOCPropertySet(rPropSet)
{
@@ -80,14 +78,14 @@ void XMLIndexTitleTemplateContext::EndElement()
Any aAny;
aAny <<= sContent.makeStringAndClear();
- rTOCPropertySet->setPropertyValue(sTitle, aAny);
+ rTOCPropertySet->setPropertyValue("Title", aAny);
if (bStyleNameOK)
{
aAny <<= GetImport().GetStyleDisplayName(
XML_STYLE_FAMILY_TEXT_PARAGRAPH,
sStyleName );
- rTOCPropertySet->setPropertyValue(sParaStyleHeading, aAny);
+ rTOCPropertySet->setPropertyValue("ParaStyleHeading", aAny);
}
}