summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-03-09 09:54:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-03-09 14:23:45 +0100
commitbbcf235753dc87ef6bc6652a77239513110e2d9e (patch)
tree0636b306f11ec31554ff4618547230de9c877977 /extensions
parent5e8c0e2556eebfee7b2d75403cbf5cee6642e644 (diff)
loplugin:refcounting (clang-cl)
Change-Id: I91189ebd902b70e2fbe42fe8cc09b8677af1a5fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112194 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-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;
}