From 82588fdf5fefbe061fb96c0419294fd8e60088bf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 1 Oct 2019 10:45:45 +0200 Subject: loplugin:refcounting (clang-cl) Change-Id: Ifae4a5617e6fcad58319ee3854b20224c4099e1b Reviewed-on: https://gerrit.libreoffice.org/79941 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- extensions/source/ole/unoobjw.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx index d8f46a09f1a8..485f31959969 100644 --- a/extensions/source/ole/unoobjw.cxx +++ b/extensions/source/ole/unoobjw.cxx @@ -55,6 +55,7 @@ #include #include +#include #include #include #include @@ -137,10 +138,10 @@ private: } public: - static Reference< TerminationVetoer > get() + static rtl::Reference< TerminationVetoer > get() { static TerminationVetoer* pInstance = new TerminationVetoer; - static Reference< TerminationVetoer > aInstance( pInstance ); + static rtl::Reference< TerminationVetoer > aInstance( pInstance ); return aInstance; } -- cgit