diff options
Diffstat (limited to 'oox/source/ole/oleobjecthelper.cxx')
-rw-r--r-- | oox/source/ole/oleobjecthelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/ole/oleobjecthelper.cxx b/oox/source/ole/oleobjecthelper.cxx index 382ceee8676f..9d089607517e 100644 --- a/oox/source/ole/oleobjecthelper.cxx +++ b/oox/source/ole/oleobjecthelper.cxx @@ -53,12 +53,12 @@ OleObjectInfo::OleObjectInfo() : // ============================================================================ OleObjectHelper::OleObjectHelper( const Reference< XMultiServiceFactory >& rxModelFactory ) : - maEmbeddedObjScheme( CREATE_OUSTRING( "vnd.sun.star.EmbeddedObject:" ) ), + maEmbeddedObjScheme( "vnd.sun.star.EmbeddedObject:" ), mnObjectId( 100 ) { if( rxModelFactory.is() ) try { - mxResolver.set( rxModelFactory->createInstance( CREATE_OUSTRING( "com.sun.star.document.ImportEmbeddedObjectResolver" ) ), UNO_QUERY ); + mxResolver.set( rxModelFactory->createInstance( "com.sun.star.document.ImportEmbeddedObjectResolver" ), UNO_QUERY ); } catch(const Exception& ) { @@ -95,7 +95,7 @@ bool OleObjectHelper::importOleObject( PropertyMap& rPropMap, const OleObjectInf // embedded OLE object - import the embedded data if( rOleObject.maEmbeddedData.hasElements() && mxResolver.is() ) try { - OUString aObjectId = CREATE_OUSTRING( "Obj" ) + OUString::valueOf( mnObjectId++ ); + OUString aObjectId = "Obj" + OUString::valueOf( mnObjectId++ ); Reference< XNameAccess > xResolverNA( mxResolver, UNO_QUERY_THROW ); Reference< XOutputStream > xOutStrm( xResolverNA->getByName( aObjectId ), UNO_QUERY_THROW ); |