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 /bridges/test | |
parent | 2e528df76b168a221c6d251d9b076bce5ba051a3 (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 'bridges/test')
-rw-r--r-- | bridges/test/java_uno/equals/testequals.cxx | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx | 2 | ||||
-rw-r--r-- | bridges/test/testcomp.cxx | 6 |
3 files changed, 4 insertions, 6 deletions
diff --git a/bridges/test/java_uno/equals/testequals.cxx b/bridges/test/java_uno/equals/testequals.cxx index 3cfd75f0c6b2..ed327eeceecc 100644 --- a/bridges/test/java_uno/equals/testequals.cxx +++ b/bridges/test/java_uno/equals/testequals.cxx @@ -105,7 +105,7 @@ void Service::connect(OUString const & rConnection, css::connection::Connector::create(m_xContext)->connect(rConnection)); css::uno::Reference< css::bridge::XBridgeFactory > xBridgeFactory( m_xContext->getServiceManager()->createInstanceWithContext( - OUString( "com.sun.star.bridge.BridgeFactory" ), + "com.sun.star.bridge.BridgeFactory", m_xContext), css::uno::UNO_QUERY); m_xBridge = xBridgeFactory->createBridge(OUString(), rProtocol, diff --git a/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx b/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx index 005197b569a3..32835e024078 100644 --- a/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx +++ b/bridges/test/java_uno/nativethreadpool/testnativethreadpoolclient.cxx @@ -81,7 +81,7 @@ sal_Int32 Client::run(css::uno::Sequence< OUString > const &) try { relay.set( factory->createInstanceWithContext( - OUString( "test.javauno.nativethreadpool.Relay" ), + "test.javauno.nativethreadpool.Relay", context), css::uno::UNO_QUERY_THROW); } catch (css::uno::RuntimeException &) { diff --git a/bridges/test/testcomp.cxx b/bridges/test/testcomp.cxx index f07760eaf0f7..78918ecdf952 100644 --- a/bridges/test/testcomp.cxx +++ b/bridges/test/testcomp.cxx @@ -91,8 +91,7 @@ Any OInstanceProvider::queryInterface( const Type & aType ) throw ( RuntimeExce // Tries to get the PerformanceTestObject if( sObjectName == "TestRemoteObject" ) { - return m_rSMgr->createInstance( - OUString("com.sun.star.test.performance.PerformanceTestObject") ); + return m_rSMgr->createInstance("com.sun.star.test.performance.PerformanceTestObject"); } return Reference < XInterface > ( (::cppu::OWeakObject * ) new OTestFactory() ); } @@ -713,8 +712,7 @@ Reference <XInterface > createComponent( const OUString &sService , { // erst registrieren Reference < XImplementationRegistration > rReg ( - rSMgr->createInstance( - OUString( "com.sun.star.registry.ImplementationRegistration" )), + rSMgr->createInstance("com.sun.star.registry.ImplementationRegistration"), UNO_QUERY ); OSL_ASSERT( rReg.is() ); |