summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-20 19:59:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-21 07:35:10 +0100
commitee8d9d41f00694c4d568bc6d82316dadc7c01165 (patch)
tree6325220c37147475adb3129375f95b81913e9f81 /cppu
parentb519d132ad7f63e05e38988c6d3291b151e7c682 (diff)
loplugin:subtlezeroinit: cppu
Change-Id: Ie2bbca4c1d7c4730d4ac655a3711f2b9917face0
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/threadpool/threadpool.cxx2
-rw-r--r--cppu/source/typelib/typelib.cxx2
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