summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 7c2291156852..f8e72d6fb3f3 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -699,27 +699,26 @@ void SAL_CALL SvXMLExport::initialize( const uno::Sequence< uno::Any >& aArgumen
uno::Reference< beans::XPropertySetInfo > xPropertySetInfo =
mxExportInfo->getPropertySetInfo();
- OUString sPropName(
- "BaseURI" );
- if( xPropertySetInfo->hasPropertyByName(sPropName) )
+ static constexpr OUStringLiteral sBaseURI = u"BaseURI";
+ if( xPropertySetInfo->hasPropertyByName(sBaseURI) )
{
- uno::Any aAny = mxExportInfo->getPropertyValue(sPropName);
+ uno::Any aAny = mxExportInfo->getPropertyValue(sBaseURI);
aAny >>= msOrigFileName;
mpImpl->msPackageURI = msOrigFileName;
mpImpl->SetSchemeOf( msOrigFileName );
}
OUString sRelPath;
- sPropName = "StreamRelPath";
- if( xPropertySetInfo->hasPropertyByName(sPropName) )
+ static constexpr OUStringLiteral sStreamRelPath = u"StreamRelPath";
+ if( xPropertySetInfo->hasPropertyByName(sStreamRelPath) )
{
- uno::Any aAny = mxExportInfo->getPropertyValue(sPropName);
+ uno::Any aAny = mxExportInfo->getPropertyValue(sStreamRelPath);
aAny >>= sRelPath;
}
OUString sName;
- sPropName = "StreamName";
- if( xPropertySetInfo->hasPropertyByName(sPropName) )
+ static constexpr OUStringLiteral sStreamName = u"StreamName";
+ if( xPropertySetInfo->hasPropertyByName(sStreamName) )
{
- uno::Any aAny = mxExportInfo->getPropertyValue(sPropName);
+ uno::Any aAny = mxExportInfo->getPropertyValue(sStreamName);
aAny >>= sName;
}
if( !msOrigFileName.isEmpty() && !sName.isEmpty() )