summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 08:40:11 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-30 08:59:59 +0000
commit3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (patch)
tree6e7f5d288cf65935b3ed1f0b88200d32d2f016f0 /extensions
parent2e528df76b168a221c6d251d9b076bce5ba051a3 (diff)
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 'extensions')
-rw-r--r--extensions/source/logging/loggerconfig.cxx2
-rw-r--r--extensions/test/ole/OleClient/funcs.cxx4
-rw-r--r--extensions/test/ole/OleConverterVar1/convTest.cxx4
-rw-r--r--extensions/test/ole/unloading/unloadTest.cxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/extensions/source/logging/loggerconfig.cxx b/extensions/source/logging/loggerconfig.cxx
index 66efdfc51c73..218b71267393 100644
--- a/extensions/source/logging/loggerconfig.cxx
+++ b/extensions/source/logging/loggerconfig.cxx
@@ -252,7 +252,7 @@ namespace logging
makeAny( OUString( "/org.openoffice.Office.Logging/Settings" ) )
);
Reference< XNameContainer > xAllSettings( xConfigProvider->createInstanceWithArguments(
- OUString( "com.sun.star.configuration.ConfigurationUpdateAccess" ),
+ "com.sun.star.configuration.ConfigurationUpdateAccess",
aArguments
), UNO_QUERY_THROW );
diff --git a/extensions/test/ole/OleClient/funcs.cxx b/extensions/test/ole/OleClient/funcs.cxx
index 584f958dff51..d20eabde3053 100644
--- a/extensions/test/ole/OleClient/funcs.cxx
+++ b/extensions/test/ole/OleClient/funcs.cxx
@@ -69,7 +69,7 @@ Reference<XInvocation> getComObject( OUString progId)
if( ! objectFactory.is())
{ Reference<XMultiServiceFactory> mgr= getMultiServiceFactory();
Reference<XInterface> xInt= mgr->createInstance(
- OUString(L"com.sun.star.bridge.oleautomation.Factory"));
+ "com.sun.star.bridge.oleautomation.Factory");
objectFactory= Reference<XMultiServiceFactory>::query( xInt);
}
@@ -88,7 +88,7 @@ Reference<XInvocation> getComObject( OUString progId)
Reference<XInvocation> convertComObject( IUnknown* pUnk)
{
Reference< XMultiServiceFactory > mgr= getMultiServiceFactory();
- Reference< XInterface > xIntSupplier= mgr->createInstance(OUString(L"com.sun.star.bridge.OleBridgeSupplier2"));
+ Reference< XInterface > xIntSupplier= mgr->createInstance("com.sun.star.bridge.OleBridgeSupplier2");
Reference< XBridgeSupplier2 > xSuppl( xIntSupplier, UNO_QUERY);
Any any;
diff --git a/extensions/test/ole/OleConverterVar1/convTest.cxx b/extensions/test/ole/OleConverterVar1/convTest.cxx
index 1b949cee8e08..00cbcc3e276a 100644
--- a/extensions/test/ole/OleConverterVar1/convTest.cxx
+++ b/extensions/test/ole/OleConverterVar1/convTest.cxx
@@ -121,10 +121,10 @@ HRESULT doTest()
Reference< XMultiComponentFactory > mgr = xContext->getServiceManager();//createRegistryServiceFactory( OUString(L"services.rdb"));
Reference< XInterface > xIntSupplier= mgr->createInstanceWithContext(
- OUString(L"com.sun.star.bridge.OleBridgeSupplierVar1"), xContext);
+ "com.sun.star.bridge.OleBridgeSupplierVar1", xContext);
Reference< XBridgeSupplier2 > xSuppl( xIntSupplier, UNO_QUERY);
Reference <XInterface> xOletest= mgr->createInstanceWithContext(
- OUString(L"oletest.OleTest"), xContext);
+ "oletest.OleTest", xContext);
Any any;
any <<= xOletest;
sal_uInt8 arId[16];
diff --git a/extensions/test/ole/unloading/unloadTest.cxx b/extensions/test/ole/unloading/unloadTest.cxx
index 1f8b491f8545..b6825fad21e0 100644
--- a/extensions/test/ole/unloading/unloadTest.cxx
+++ b/extensions/test/ole/unloading/unloadTest.cxx
@@ -100,7 +100,7 @@ sal_Bool test2()
Reference< XComponentContext > context= bootstrap_InitialComponentContext(xreg);
Reference<XMultiComponentFactory> fac= context->getServiceManager();
- OUString sService2("com.sun.star.bridge.OleBridgeSupplierVar1");
+ OUString sService2("com.sun.star.bridge.OleBridgeSupplierVar1");
Reference<XInterface> xint= fac->createInstanceWithContext( sService2, context);
OUString sModule("oleautobridge.uno" SAL_DLLEXTENSION);