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 /odk/examples/cpp/counter/countermain.cxx | |
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 'odk/examples/cpp/counter/countermain.cxx')
-rw-r--r-- | odk/examples/cpp/counter/countermain.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx index f917a4fe8da5..a00e22143605 100644 --- a/odk/examples/cpp/counter/countermain.cxx +++ b/odk/examples/cpp/counter/countermain.cxx @@ -71,8 +71,7 @@ SAL_IMPLEMENT_MAIN() Reference< XMultiComponentFactory > xMgr = xContext->getServiceManager(); OSL_ENSURE( xMgr.is(), "### cannot get initial service manager!" ); - Reference< XInterface > xx = xMgr->createInstanceWithContext( - OUString("foo.Counter"), xContext); + Reference< XInterface > xx = xMgr->createInstanceWithContext( "foo.Counter", xContext); OSL_ENSURE( xx.is(), "### cannot get service instance of \"foo.Counter\"!" ); |