summaryrefslogtreecommitdiff
path: root/oox/source/docprop
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/docprop')
-rw-r--r--oox/source/docprop/docprophandler.cxx2
-rw-r--r--oox/source/docprop/ooxmldocpropimport.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx
index 3f2d962c8f90..f53484e3a06b 100644
--- a/oox/source/docprop/docprophandler.cxx
+++ b/oox/source/docprop/docprophandler.cxx
@@ -705,7 +705,7 @@ void SAL_CALL OOXMLDocPropHandler::characters( const OUString& aChars )
{
css::uno::Any anyEx = cppu::getCaughtException();
throw xml::sax::SAXException(
- "Error while setting document property!",
+ u"Error while setting document property!"_ustr,
uno::Reference< uno::XInterface >(),
anyEx );
}
diff --git a/oox/source/docprop/ooxmldocpropimport.cxx b/oox/source/docprop/ooxmldocpropimport.cxx
index 23e754d6bbcf..432edd825d6d 100644
--- a/oox/source/docprop/ooxmldocpropimport.cxx
+++ b/oox/source/docprop/ooxmldocpropimport.cxx
@@ -93,7 +93,7 @@ Sequence< InputSource > lclGetCoreStreams(const Reference< XStorage >& rxSource)
aCoreStreams = lclGetRelatedStreams(rxSource, CREATE_OFFICEDOC_RELATION_TYPE_STRICT("metadata/core-properties"));
// MS Office seems to have a bug, so we have to do similar handling
if (!aCoreStreams.hasElements())
- aCoreStreams = lclGetRelatedStreams(rxSource, "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties");
+ aCoreStreams = lclGetRelatedStreams(rxSource, u"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"_ustr);
return aCoreStreams;
}
@@ -129,7 +129,7 @@ DocumentPropertiesImport::DocumentPropertiesImport( const Reference< XComponentC
// XServiceInfo
OUString SAL_CALL DocumentPropertiesImport::getImplementationName()
{
- return "com.sun.star.comp.oox.docprop.DocumentPropertiesImporter";
+ return u"com.sun.star.comp.oox.docprop.DocumentPropertiesImporter"_ustr;
}
sal_Bool SAL_CALL DocumentPropertiesImport::supportsService( const OUString& rServiceName )
@@ -139,7 +139,7 @@ sal_Bool SAL_CALL DocumentPropertiesImport::supportsService( const OUString& rSe
Sequence< OUString > SAL_CALL DocumentPropertiesImport::getSupportedServiceNames()
{
- Sequence<OUString> aServices { "com.sun.star.document.OOXMLDocumentPropertiesImporter" };
+ Sequence<OUString> aServices { u"com.sun.star.document.OOXMLDocumentPropertiesImporter"_ustr };
return aServices;
}
@@ -163,7 +163,7 @@ void SAL_CALL DocumentPropertiesImport::importProperties(
return;
if( aCoreStreams.getLength() > 1 )
- throw IOException( "Unexpected core properties stream!" );
+ throw IOException( u"Unexpected core properties stream!"_ustr );
::oox::core::FastParser aParser;
aParser.registerNamespace( NMSP_packageMetaCorePr );