summaryrefslogtreecommitdiff
path: root/extensions/source/ole/unoobjw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/ole/unoobjw.cxx')
-rw-r--r--extensions/source/ole/unoobjw.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index ad411479401b..5b47ecc18d31 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -143,8 +143,7 @@ private:
public:
static rtl::Reference< TerminationVetoer > get()
{
- static TerminationVetoer* pInstance = new TerminationVetoer;
- static rtl::Reference< TerminationVetoer > aInstance( pInstance );
+ static rtl::Reference< TerminationVetoer > aInstance( new TerminationVetoer );
return aInstance;
}