diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:33 +0100 |
commit | d553aa44d2def412bafe33b9fe68c463e957bda5 (patch) | |
tree | 8eb3318d4f21e50838ef6ebf4d8224042c54cfd0 /oox/source/ole/olehelper.cxx | |
parent | loplugin:stringconstant: elide explicit ctor usage (automatic rewrite) (diff) | |
download | core-d553aa44d2def412bafe33b9fe68c463e957bda5.tar.gz core-d553aa44d2def412bafe33b9fe68c463e957bda5.zip |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ia944d081842753fcf82f77bda82defe1d5566b37
Diffstat (limited to 'oox/source/ole/olehelper.cxx')
-rw-r--r-- | oox/source/ole/olehelper.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx index c33f417a244b..cf9bbed1fcfa 100644 --- a/oox/source/ole/olehelper.cxx +++ b/oox/source/ole/olehelper.cxx @@ -527,13 +527,13 @@ bool MSConvertOCXControls::ReadOCXStorage( tools::SvRef<SotStorage>& xOleStg, { if ( xOleStg.Is() ) { - tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream( OUString("\3OCXNAME")); + tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream( "\3OCXNAME"); BinaryXInputStream aNameStream( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *pNameStream ) ), true ); - tools::SvRef<SotStorageStream> pContents = xOleStg->OpenSotStream( OUString("contents")); + tools::SvRef<SotStorageStream> pContents = xOleStg->OpenSotStream( "contents"); BinaryXInputStream aInStrm( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *pContents ) ), true ); - tools::SvRef<SotStorageStream> pClsStrm = xOleStg->OpenSotStream(OUString("\1CompObj")); + tools::SvRef<SotStorageStream> pClsStrm = xOleStg->OpenSotStream("\1CompObj"); BinaryXInputStream aClsStrm( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper(*pClsStrm ) ), true ); aClsStrm.skip(12); @@ -588,17 +588,17 @@ bool MSConvertOCXControls::WriteOCXStream( const Reference< XModel >& rxModel, t rName = exportHelper.getTypeName(); xOleStg->SetClass( aName, SotClipboardFormatId::EMBEDDED_OBJ_OLE, sFullName); { - tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream(OUString("\3OCXNAME")); + tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream("\3OCXNAME"); Reference< XOutputStream > xOut = new utl::OSeekableOutputStreamWrapper( *pNameStream ); exportHelper.exportName( xOut ); } { - tools::SvRef<SotStorageStream> pObjStream = xOleStg->OpenSotStream(OUString("\1CompObj")); + tools::SvRef<SotStorageStream> pObjStream = xOleStg->OpenSotStream("\1CompObj"); Reference< XOutputStream > xOut = new utl::OSeekableOutputStreamWrapper( *pObjStream ); exportHelper.exportCompObj( xOut ); } { - tools::SvRef<SotStorageStream> pContents = xOleStg->OpenSotStream(OUString("contents")); + tools::SvRef<SotStorageStream> pContents = xOleStg->OpenSotStream("contents"); Reference< XOutputStream > xOut = new utl::OSeekableOutputStreamWrapper( *pContents ); exportHelper.exportControl( xOut, rSize ); } |