summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLSectionExport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLSectionExport.cxx')
-rw-r--r--xmloff/source/text/XMLSectionExport.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx
index 8dfde974df9e..45b02e05c35d 100644
--- a/xmloff/source/text/XMLSectionExport.cxx
+++ b/xmloff/source/text/XMLSectionExport.cxx
@@ -356,10 +356,9 @@ void XMLSectionExport::ExportRegularSectionStart(
// get XPropertySet for other values
Reference<XPropertySet> xPropSet(rSection, UNO_QUERY);
- Any aAny;
// condition and display
- aAny = xPropSet->getPropertyValue("Condition");
+ Any aAny = xPropSet->getPropertyValue("Condition");
OUString sCond;
aAny >>= sCond;
enum XMLTokenEnum eDisplay = XML_TOKEN_INVALID;
@@ -605,8 +604,7 @@ void XMLSectionExport::ExportAlphabeticalIndexStart(
{
// style name (if present)
- Any aAny;
- aAny = rPropertySet->getPropertyValue("MainEntryCharacterStyleName");
+ Any aAny = rPropertySet->getPropertyValue("MainEntryCharacterStyleName");
OUString sStyleName;
aAny >>= sStyleName;
if (!sStyleName.isEmpty())