summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/javaloader/javaloader.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx
index 34d80b4f3b52..19dc5d875049 100644
--- a/stoc/source/javaloader/javaloader.cxx
+++ b/stoc/source/javaloader/javaloader.cxx
@@ -346,16 +346,8 @@ static css::uno::Reference<XInterface> JavaComponentLoader_CreateInstance(const
MutexGuard guard( getInitMutex() );
// The javaloader is never destroyed and there can be only one!
// Note that the first context wins ....
- static css::uno::Reference< XInterface > xStaticRef;
- if( xStaticRef.is() )
- {
- xRet = xStaticRef;
- }
- else
- {
- xRet = *new JavaComponentLoader(xCtx);
- xStaticRef = xRet;
- }
+ static css::uno::Reference< XInterface > xStaticRef = *new JavaComponentLoader(xCtx);
+ xRet = xStaticRef;
}
catch(const RuntimeException & runtimeException) {
SAL_INFO(