diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-03 08:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-04 12:39:40 +0200 |
commit | 58a32075ca4f457f570af75aef368dd6c389aca7 (patch) | |
tree | e437dcbdeb248b4316cb8a9281d1543419853f6d /xmloff/source/text/XMLSectionImportContext.cxx | |
parent | 7d47700972d267fe7c5270c5dadd45a523a2baec (diff) |
use Any constructor instead of temporaries
Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
Diffstat (limited to 'xmloff/source/text/XMLSectionImportContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLSectionImportContext.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmloff/source/text/XMLSectionImportContext.cxx b/xmloff/source/text/XMLSectionImportContext.cxx index d89abf0240a4..43f6d247ba0c 100644 --- a/xmloff/source/text/XMLSectionImportContext.cxx +++ b/xmloff/source/text/XMLSectionImportContext.cxx @@ -167,7 +167,6 @@ void XMLSectionImportContext::StartElement( // IsVisible and condition (not for index headers) if (! bIsIndexHeader) { - Any aAny; xPropSet->setPropertyValue( sIsVisible, Any(bIsVisible) ); // #97450# hidden sections must be hidden on reload @@ -180,8 +179,7 @@ void XMLSectionImportContext::StartElement( if (bCondOK) { - aAny <<= sCond; - xPropSet->setPropertyValue( sCondition, aAny ); + xPropSet->setPropertyValue( sCondition, Any(sCond) ); } } @@ -189,9 +187,7 @@ void XMLSectionImportContext::StartElement( if ( bSequenceOK && IsXMLToken(GetLocalName(), XML_SECTION) ) { - Any aAny; - aAny <<= aSequence; - xPropSet->setPropertyValue(sProtectionKey, aAny); + xPropSet->setPropertyValue(sProtectionKey, Any(aSequence)); } // protection |