diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 08:40:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 08:59:59 +0000 |
commit | 3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (patch) | |
tree | 6e7f5d288cf65935b3ed1f0b88200d32d2f016f0 /basic | |
parent | tdf#90987: SlideSorterBarOptions was missing Commit() too (diff) | |
download | core-3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd.tar.gz core-3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd.zip |
UNO: no need to use OUString constructor when calling createInstance
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526
Reviewed-on: https://gerrit.libreoffice.org/19682
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 10 | ||||
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index c4165e8cb432..a522472d6089 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -253,9 +253,8 @@ SbUnoObject* createOLEObject_Impl( const OUString& aType ) { Reference<XMultiComponentFactory> xSMgr = xContext->getServiceManager(); xOLEFactory.set( - xSMgr->createInstanceWithContext( - OUString( "com.sun.star.bridge.OleObjectFactory"), - xContext ), UNO_QUERY ); + xSMgr->createInstanceWithContext( "com.sun.star.bridge.OleObjectFactory", xContext ), + UNO_QUERY ); } } @@ -4548,7 +4547,7 @@ Reference< XInterface > createComListener( const Any& aControlAny, const OUStrin try { xRet = xServiceMgr->createInstanceWithArgumentsAndContext( - OUString( "com.sun.star.custom.UnoComListener"), + "com.sun.star.custom.UnoComListener", args, xContext ); } catch( const Exception& ) @@ -4661,8 +4660,7 @@ bool SbModule::createCOMWrapperForIface( Any& o_rRetAny, SbClassModuleObject* pP Reference< XMultiComponentFactory > xServiceMgr( xContext->getServiceManager() ); Reference< XSingleServiceFactory > xComImplementsFactory ( - xServiceMgr->createInstanceWithContext( - OUString( "com.sun.star.custom.ComImplementsFactory"), xContext ), + xServiceMgr->createInstanceWithContext( "com.sun.star.custom.ComImplementsFactory", xContext ), UNO_QUERY ); if( !xComImplementsFactory.is() ) diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index f4aa67f972ac..9766d74d1141 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -131,7 +131,7 @@ bool writeOasis2OOoLibraryElement( Reference< xml::sax::XDocumentHandler > xHandler( xSMgr->createInstanceWithArgumentsAndContext( - OUString("com.sun.star.comp.Oasis2OOoTransformer" ) , + "com.sun.star.comp.Oasis2OOoTransformer", aArgs, xContext ), UNO_QUERY ); |