diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/tiledrendering/tiledrendering.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/html/htmlform.cxx | 10 | ||||
-rw-r--r-- | sw/source/uibase/shells/annotsh.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/table/chartins.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewling.cxx | 4 |
5 files changed, 11 insertions, 13 deletions
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx index 6db48a1e3880..1adad492ba0b 100644 --- a/sw/qa/tiledrendering/tiledrendering.cxx +++ b/sw/qa/tiledrendering/tiledrendering.cxx @@ -179,7 +179,7 @@ void TiledRenderingApp::Init() // plain createInstance w/o args directly to obtain an instance): ::ucb::UniversalContentBroker::create(comphelper::getProcessComponentContext() ); - xDesktop.set(xFactory->createInstanceWithContext(OUString("com.sun.star.frame.Desktop"), xContext)); + xDesktop.set(xFactory->createInstanceWithContext("com.sun.star.frame.Desktop", xContext)); xLoader.set(frame::Desktop::create(xContext)); } diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx index 84e9b8f3f681..b0775197dfce 100644 --- a/sw/source/filter/html/htmlform.cxx +++ b/sw/source/filter/html/htmlform.cxx @@ -891,9 +891,7 @@ uno::Reference< drawing::XShape > SwHTMLParser::InsertControl( if( !rServiceFactory.is() ) return xShape; - uno::Reference< XInterface > xCreate = - rServiceFactory ->createInstance( - OUString("com.sun.star.drawing.ControlShape")); + uno::Reference< XInterface > xCreate = rServiceFactory->createInstance( "com.sun.star.drawing.ControlShape" ); if( !xCreate.is() ) return xShape; @@ -1326,7 +1324,7 @@ void SwHTMLParser::NewForm( bool bAppend ) return; uno::Reference< XInterface > xInt = rSrvcMgr->createInstance( - OUString("com.sun.star.form.component.Form") ); + "com.sun.star.form.component.Form" ); if( !xInt.is() ) return; @@ -2014,7 +2012,7 @@ void SwHTMLParser::NewTextArea() return; } uno::Reference< uno::XInterface > xInt = rSrvcMgr->createInstance( - OUString("com.sun.star.form.component.TextField") ); + "com.sun.star.form.component.TextField" ); if( !xInt.is() ) { FinishTextArea(); @@ -2282,7 +2280,7 @@ void SwHTMLParser::NewSelect() return; } uno::Reference< uno::XInterface > xInt = rSrvcMgr->createInstance( - OUString("com.sun.star.form.component.ListBox") ); + "com.sun.star.form.component.ListBox" ); if( !xInt.is() ) { FinishTextArea(); diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index d18d611ca3e1..5f68f0c57b73 100644 --- a/sw/source/uibase/shells/annotsh.cxx +++ b/sw/source/uibase/shells/annotsh.cxx @@ -1253,8 +1253,8 @@ void SwAnnotationShell::ExecLingu(SfxRequest &rReq) { Reference< ui::dialogs::XExecutableDialog > xDialog( xMCF->createInstanceWithContext( - OUString("com.sun.star.linguistic2.ChineseTranslationDialog") - , xContext), UNO_QUERY); + "com.sun.star.linguistic2.ChineseTranslationDialog", xContext), + UNO_QUERY); Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY ); if( xInit.is() ) { diff --git a/sw/source/uibase/table/chartins.cxx b/sw/source/uibase/table/chartins.cxx index 1515a85c53ab..c28c18675c45 100644 --- a/sw/source/uibase/table/chartins.cxx +++ b/sw/source/uibase/table/chartins.cxx @@ -176,8 +176,8 @@ void SwInsertChart(vcl::Window* pParent, SfxBindings* pBindings ) { uno::Reference< ui::dialogs::XExecutableDialog > xDialog( xMCF->createInstanceWithContext( - OUString("com.sun.star.comp.chart2.WizardDialog") - , xContext), uno::UNO_QUERY); + "com.sun.star.comp.chart2.WizardDialog", xContext), + uno::UNO_QUERY); uno::Reference< lang::XInitialization > xInit( xDialog, uno::UNO_QUERY ); if( xInit.is() ) { diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index 2d760419cc53..25a626d99c38 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -121,8 +121,8 @@ void SwView::ExecLingu(SfxRequest &rReq) { Reference< ui::dialogs::XExecutableDialog > xDialog( xMCF->createInstanceWithContext( - OUString("com.sun.star.linguistic2.ChineseTranslationDialog") - , xContext), UNO_QUERY); + "com.sun.star.linguistic2.ChineseTranslationDialog", xContext), + UNO_QUERY); Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY ); if( xInit.is() ) { |