From ee8d9d41f00694c4d568bc6d82316dadc7c01165 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 20 Feb 2017 19:59:46 +0100 Subject: loplugin:subtlezeroinit: cppu Change-Id: Ie2bbca4c1d7c4730d4ac655a3711f2b9917face0 --- cppu/source/threadpool/threadpool.cxx | 2 +- cppu/source/typelib/typelib.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx index e22d4d1d92ab..17492c6eb2ad 100644 --- a/cppu/source/threadpool/threadpool.cxx +++ b/cppu/source/threadpool/threadpool.cxx @@ -397,7 +397,7 @@ uno_threadpool_create() SAL_THROW_EXTERN_C() ThreadPoolHolder p; if( ! g_pThreadpoolHashSet ) { - g_pThreadpoolHashSet = new ThreadpoolHashSet(); + g_pThreadpoolHashSet = new ThreadpoolHashSet; p = new ThreadPool; } else diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index a7126b57c94a..52d1a2e09e68 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -2101,7 +2101,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_new( if( reallyWeak( eTypeClass ) ) { - typelib_TypeDescriptionReference * pTDR = new typelib_TypeDescriptionReference(); + typelib_TypeDescriptionReference * pTDR = new typelib_TypeDescriptionReference; #if OSL_DEBUG_LEVEL > 0 osl_atomic_increment( &rInit.nTypeDescriptionReferenceCount ); #endif -- cgit