From 52b25c1adf3a70819aea2080b0ad50a14a3c104b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 16 Feb 2015 20:47:23 +0000 Subject: 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 --- sc/workben/addin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc/workben') 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 ScTestAddIn_CreateInstance( const uno::Reference& ) { - static uno::Reference xInst = (cppu::OWeakObject*)new ScTestAddIn(); - return xInst; + return (cppu::OWeakObject*)new ScTestAddIn(); } // XAddIn -- cgit