diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-26 16:59:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-27 08:20:12 +0200 |
commit | 0f2824b117b65bd9c9db2870edc159419ae0c1d9 (patch) | |
tree | 2e45a7d5e0d60b97bf989fd21c0ae35392ba5823 /stoc/source | |
parent | 9af0abebfd61641c9d028505caa864cdf898e35b (diff) |
remove more unnecessary use of OUString constructor
Change-Id: Iae14cb3df65295b6894fd9e05411c5698e9c8aba
Diffstat (limited to 'stoc/source')
-rw-r--r-- | stoc/source/javaloader/javaloader.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index 3b33627f6fca..335356ad39d5 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -165,8 +165,8 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL reinterpret_cast< jvmaccess::UnoVirtualMachine * >(nPointer)); if (!xVirtualMachine.is()) { - //throw RuntimeException(OUString( - // "javaloader error - JavaVirtualMachine service could not provide a VM"), + //throw RuntimeException( + // "javaloader error - JavaVirtualMachine service could not provide a VM", // css::uno::Reference<XInterface>()); // We must not throw a RuntimeException, because this might end the applications. // It is ok if java components @@ -333,8 +333,7 @@ sal_Bool SAL_CALL JavaComponentLoader::writeRegistryInfo( if (loader.is()) return loader->writeRegistryInfo(xKey, blabla, rLibName); else - throw CannotRegisterImplementationException( - OUString("Could not create Java implementation loader"), NULL); + throw CannotRegisterImplementationException("Could not create Java implementation loader"); } @@ -347,8 +346,7 @@ css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader::activate( if (loader.is()) return loader->activate(rImplName, blabla, rLibName, xKey); else - throw CannotActivateFactoryException( - OUString("Could not create Java implementation loader"), NULL); + throw CannotActivateFactoryException("Could not create Java implementation loader"); } static Mutex & getInitMutex() |