summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-20 20:01:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-21 07:35:11 +0100
commitdb760ac665357a008953d65d223226f165491348 (patch)
tree29cbd7c597e77f4b4b9c071e2a5b72511d7edbc0 /comphelper
parent6a77b9b6faf0c218b6668aa7d09133f054f25abc (diff)
loplugin:subtlezeroinit: comphelper
Change-Id: I6b97583d9bdc0d0f8c059d0fbc9e3f41f822bf3b
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/qa/container/testifcontainer.cxx24
-rw-r--r--comphelper/source/misc/anycompare.cxx34
-rw-r--r--comphelper/source/misc/storagehelper.cxx2
3 files changed, 30 insertions, 30 deletions
diff --git a/comphelper/qa/container/testifcontainer.cxx b/comphelper/qa/container/testifcontainer.cxx
index b39eef1d5bd4..f8c9d7005a09 100644
--- a/comphelper/qa/container/testifcontainer.cxx
+++ b/comphelper/qa/container/testifcontainer.cxx
@@ -66,9 +66,9 @@ void TestInterfaceContainer2::test1()
{
comphelper::OInterfaceContainerHelper2 helper( mutex );
- Reference< XVetoableChangeListener > r1 = new TestListener();
- Reference< XVetoableChangeListener > r2 = new TestListener();
- Reference< XVetoableChangeListener > r3 = new TestListener();
+ Reference< XVetoableChangeListener > r1 = new TestListener;
+ Reference< XVetoableChangeListener > r2 = new TestListener;
+ Reference< XVetoableChangeListener > r3 = new TestListener;
helper.addInterface( r1 );
helper.addInterface( r2 );
@@ -80,9 +80,9 @@ void TestInterfaceContainer2::test1()
{
comphelper::OInterfaceContainerHelper2 helper( mutex );
- Reference< XVetoableChangeListener > r1 = new TestListener();
- Reference< XVetoableChangeListener > r2 = new TestListener();
- Reference< XVetoableChangeListener > r3 = new TestListener();
+ Reference< XVetoableChangeListener > r1 = new TestListener;
+ Reference< XVetoableChangeListener > r2 = new TestListener;
+ Reference< XVetoableChangeListener > r3 = new TestListener;
helper.addInterface( r1 );
helper.addInterface( r2 );
@@ -99,9 +99,9 @@ void TestInterfaceContainer2::test1()
{
comphelper::OInterfaceContainerHelper2 helper( mutex );
- Reference< XVetoableChangeListener > r1 = new TestListener();
- Reference< XVetoableChangeListener > r2 = new TestListener();
- Reference< XVetoableChangeListener > r3 = new TestListener();
+ Reference< XVetoableChangeListener > r1 = new TestListener;
+ Reference< XVetoableChangeListener > r2 = new TestListener;
+ Reference< XVetoableChangeListener > r3 = new TestListener;
helper.addInterface( r1 );
helper.addInterface( r2 );
@@ -123,9 +123,9 @@ void TestInterfaceContainer2::test1()
{
comphelper::OInterfaceContainerHelper2 helper( mutex );
- Reference< XVetoableChangeListener > r1 = new TestListener();
- Reference< XVetoableChangeListener > r2 = new TestListener();
- Reference< XVetoableChangeListener > r3 = new TestListener();
+ Reference< XVetoableChangeListener > r1 = new TestListener;
+ Reference< XVetoableChangeListener > r2 = new TestListener;
+ Reference< XVetoableChangeListener > r3 = new TestListener;
helper.addInterface( r1 );
helper.addInterface( r2 );
diff --git a/comphelper/source/misc/anycompare.cxx b/comphelper/source/misc/anycompare.cxx
index aa92b70f5309..6c8ecd335ba6 100644
--- a/comphelper/source/misc/anycompare.cxx
+++ b/comphelper/source/misc/anycompare.cxx
@@ -164,60 +164,60 @@ namespace comphelper
switch ( i_type.getTypeClass() )
{
case TypeClass_CHAR:
- pComparator.reset( new ScalarPredicateLess< sal_Unicode >() );
+ pComparator.reset( new ScalarPredicateLess< sal_Unicode > );
break;
case TypeClass_BOOLEAN:
- pComparator.reset( new ScalarPredicateLess< bool >() );
+ pComparator.reset( new ScalarPredicateLess< bool > );
break;
case TypeClass_BYTE:
- pComparator.reset( new ScalarPredicateLess< sal_Int8 >() );
+ pComparator.reset( new ScalarPredicateLess< sal_Int8 > );
break;
case TypeClass_SHORT:
- pComparator.reset( new ScalarPredicateLess< sal_Int16 >() );
+ pComparator.reset( new ScalarPredicateLess< sal_Int16 > );
break;
case TypeClass_UNSIGNED_SHORT:
- pComparator.reset( new ScalarPredicateLess< sal_uInt16 >() );
+ pComparator.reset( new ScalarPredicateLess< sal_uInt16 > );
break;
case TypeClass_LONG:
- pComparator.reset( new ScalarPredicateLess< sal_Int32 >() );
+ pComparator.reset( new ScalarPredicateLess< sal_Int32 > );
break;
case TypeClass_UNSIGNED_LONG:
- pComparator.reset( new ScalarPredicateLess< sal_uInt32 >() );
+ pComparator.reset( new ScalarPredicateLess< sal_uInt32 > );
break;
case TypeClass_HYPER:
- pComparator.reset( new ScalarPredicateLess< sal_Int64 >() );
+ pComparator.reset( new ScalarPredicateLess< sal_Int64 > );
break;
case TypeClass_UNSIGNED_HYPER:
- pComparator.reset( new ScalarPredicateLess< sal_uInt64 >() );
+ pComparator.reset( new ScalarPredicateLess< sal_uInt64 > );
break;
case TypeClass_FLOAT:
- pComparator.reset( new ScalarPredicateLess< float >() );
+ pComparator.reset( new ScalarPredicateLess< float > );
break;
case TypeClass_DOUBLE:
- pComparator.reset( new ScalarPredicateLess< double >() );
+ pComparator.reset( new ScalarPredicateLess< double > );
break;
case TypeClass_STRING:
if ( i_collator.is() )
pComparator.reset( new StringCollationPredicateLess( i_collator ) );
else
- pComparator.reset( new StringPredicateLess() );
+ pComparator.reset( new StringPredicateLess );
break;
case TypeClass_TYPE:
- pComparator.reset( new TypePredicateLess() );
+ pComparator.reset( new TypePredicateLess );
break;
case TypeClass_ENUM:
pComparator.reset( new EnumPredicateLess( i_type ) );
break;
case TypeClass_INTERFACE:
- pComparator.reset( new InterfacePredicateLess() );
+ pComparator.reset( new InterfacePredicateLess );
break;
case TypeClass_STRUCT:
if ( i_type.equals( ::cppu::UnoType< Date >::get() ) )
- pComparator.reset( new DatePredicateLess() );
+ pComparator.reset( new DatePredicateLess );
else if ( i_type.equals( ::cppu::UnoType< Time >::get() ) )
- pComparator.reset( new TimePredicateLess() );
+ pComparator.reset( new TimePredicateLess );
else if ( i_type.equals( ::cppu::UnoType< DateTime >::get() ) )
- pComparator.reset( new DateTimePredicateLess() );
+ pComparator.reset( new DateTimePredicateLess );
break;
default:
break;
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index d6229e9bda47..d822f51f7de4 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -489,7 +489,7 @@ bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString& aSeg
class LifecycleProxy::Impl
: public std::vector< uno::Reference< embed::XStorage > > {};
LifecycleProxy::LifecycleProxy()
- : m_xBadness( new Impl() ) { }
+ : m_xBadness( new Impl ) { }
LifecycleProxy::~LifecycleProxy() { }
void LifecycleProxy::commitStorages()