summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-16 20:47:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-16 22:59:53 +0000
commit52b25c1adf3a70819aea2080b0ad50a14a3c104b (patch)
tree7cea76303d3bfcd29b138b903241d79c6ff08a77 /stoc
parent0ae82ba5d2b0ab81cac27efbb0226ed0f15d3b96 (diff)
we shouldn't need a static ref in these createOneInstance factory helpers
at least not to ensure that they are singletons anyway Change-Id: I08176afa67ac5f8e4f479b70ca5d71c52d0bb9af
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/typeconv/convert.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index e737f877e45b..544243b2540d 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -917,8 +917,7 @@ Reference< XInterface > SAL_CALL TypeConverter_Impl_CreateInstance(
SAL_UNUSED_PARAMETER const Reference< XComponentContext > & )
throw( RuntimeException )
{
- static Reference< XInterface > s_ref( (OWeakObject *) new stoc_tcv::TypeConverter_Impl() );
- return s_ref;
+ return (OWeakObject *) new stoc_tcv::TypeConverter_Impl();
}
}