diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 19:58:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-21 07:35:09 +0100 |
commit | b519d132ad7f63e05e38988c6d3291b151e7c682 (patch) | |
tree | e99eb3ceb48bf45137835239c791435a8cb29439 /cppuhelper/source/interfacecontainer.cxx | |
parent | 06f1b8d46edcf23236c87dc53af8fc7a1541fd61 (diff) |
loplugin:subtlezeroinit: cppuhelper
Change-Id: I405ba174a4397938415eee6108ca1f0687b4649a
Diffstat (limited to 'cppuhelper/source/interfacecontainer.cxx')
-rw-r--r-- | cppuhelper/source/interfacecontainer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx index a2f7d7e46e76..61989864e90c 100644 --- a/cppuhelper/source/interfacecontainer.cxx +++ b/cppuhelper/source/interfacecontainer.cxx @@ -335,7 +335,7 @@ typedef std::vector< std::pair < Type , void* > > t_type2ptr; OMultiTypeInterfaceContainerHelper::OMultiTypeInterfaceContainerHelper( Mutex & rMutex_ ) : rMutex( rMutex_ ) { - m_pMap = new t_type2ptr(); + m_pMap = new t_type2ptr; } OMultiTypeInterfaceContainerHelper::~OMultiTypeInterfaceContainerHelper() @@ -586,7 +586,7 @@ sal_Int32 OMultiTypeInterfaceContainerHelperInt32::addInterface( { ::osl::MutexGuard aGuard( rMutex ); if (!m_pMap) - m_pMap = new t_long2ptr(); + m_pMap = new t_long2ptr; t_long2ptr * pMap = static_cast<t_long2ptr *>(m_pMap); t_long2ptr::iterator iter = findLong( pMap, rKey ); if( iter == pMap->end() ) |