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 /sax | |
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 'sax')
-rw-r--r-- | sax/test/saxdemo.cxx | 6 | ||||
-rw-r--r-- | sax/test/testcomponent.cxx | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx index cc881ebb1bcc..9da50fa40922 100644 --- a/sax/test/saxdemo.cxx +++ b/sax/test/saxdemo.cxx @@ -499,8 +499,7 @@ int main (int argc, char **argv) try { // Create registration service - Reference < XInterface > x = xSMgr->createInstance( - OUString("com.sun.star.registry.ImplementationRegistration") ); + Reference < XInterface > x = xSMgr->createInstance( "com.sun.star.registry.ImplementationRegistration" ); xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY ); } catch( Exception & ) { @@ -530,8 +529,7 @@ int main (int argc, char **argv) // parser demo // read xml from a file and count elements - Reference< XInterface > x = xSMgr->createInstance( - OUString("com.sun.star.xml.sax.Parser") ); + Reference< XInterface > x = xSMgr->createInstance( "com.sun.star.xml.sax.Parser" ); if( x.is() ) { Reference< XParser > rParser( x , UNO_QUERY ); diff --git a/sax/test/testcomponent.cxx b/sax/test/testcomponent.cxx index d34776789f8a..e498b2290908 100644 --- a/sax/test/testcomponent.cxx +++ b/sax/test/testcomponent.cxx @@ -68,8 +68,7 @@ int main (int argc, char **argv) try { // Create registration service - Reference < XInterface > x = xSMgr->createInstance( - OUString("com.sun.star.registry.ImplementationRegistration") ); + Reference < XInterface > x = xSMgr->createInstance( "com.sun.star.registry.ImplementationRegistration" ); xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY ); } catch (const Exception&) |