summaryrefslogtreecommitdiff
path: root/sc/workben
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 /sc/workben
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 'sc/workben')
-rw-r--r--sc/workben/addin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/workben/addin.cxx b/sc/workben/addin.cxx
index f5784c50aca9..60089b318a19 100644
--- a/sc/workben/addin.cxx
+++ b/sc/workben/addin.cxx
@@ -120,8 +120,7 @@ UString ScTestAddIn::getImplementationName_Static()
uno::Reference<uno::XInterface> ScTestAddIn_CreateInstance(
const uno::Reference<lang::XMultiServiceFactory>& )
{
- static uno::Reference<uno::XInterface> xInst = (cppu::OWeakObject*)new ScTestAddIn();
- return xInst;
+ return (cppu::OWeakObject*)new ScTestAddIn();
}
// XAddIn