summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/OLEHandler.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-03 14:03:54 +0200
committerNoel Grandin <noel@peralex.com>2014-11-05 08:44:19 +0200
commit705c48d32eec0aa5180e60ca157daca4b154e4a3 (patch)
tree97f43496f4b429a2b8d03b1e71cb2a1c33142a15 /writerfilter/source/dmapper/OLEHandler.cxx
parentb7d8a58ff2698ffc6e22943f64aa97c5ea253bd9 (diff)
fdo#38835 strip out OUString globals
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
Diffstat (limited to 'writerfilter/source/dmapper/OLEHandler.cxx')
-rw-r--r--writerfilter/source/dmapper/OLEHandler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/dmapper/OLEHandler.cxx b/writerfilter/source/dmapper/OLEHandler.cxx
index addb2b2bdd8c..55857b949e19 100644
--- a/writerfilter/source/dmapper/OLEHandler.cxx
+++ b/writerfilter/source/dmapper/OLEHandler.cxx
@@ -185,7 +185,7 @@ void OLEHandler::lcl_sprm(Sprm & rSprm)
void OLEHandler::saveInteropProperties(uno::Reference<text::XTextDocument> const& xTextDocument, const OUString& sObjectName, const OUString& sOldObjectName)
{
- static const OUString sEmbeddingsPropName = "EmbeddedObjects";
+ static const char sEmbeddingsPropName[] = "EmbeddedObjects";
// get interop grab bag from document
uno::Reference< beans::XPropertySet > xDocProps( xTextDocument, uno::UNO_QUERY );
@@ -293,9 +293,9 @@ OUString OLEHandler::copyOLEOStream(
saveInteropProperties( xTextDocument, aURL );
- static const OUString sProtocol("vnd.sun.star.EmbeddedObject:");
+ static const char sProtocol[] = "vnd.sun.star.EmbeddedObject:";
OUString aPersistName( xEmbeddedResolver->resolveEmbeddedObjectURL( aURL ) );
- sRet = aPersistName.copy( sProtocol.getLength() );
+ sRet = aPersistName.copy( strlen(sProtocol) );
}
uno::Reference< lang::XComponent > xComp( xEmbeddedResolver, uno::UNO_QUERY_THROW );