diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-17 09:01:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-17 09:32:03 +0100 |
commit | 23885b06b185142d6ef4a3ceccfd3b5ad915a65f (patch) | |
tree | 868cf1ca4c2d1f9e18136497fc745a74b365bced /ucb | |
parent | 4a64a68c6828b7cf0e57ee40817f4ab1a8a75aea (diff) |
loplugin:unnecessaryparen extend to delete statements
Change-Id: Ic4383ea948876a26f791f0e5b0110cef978a26e1
Reviewed-on: https://gerrit.libreoffice.org/48027
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filtask.cxx | 14 | ||||
-rw-r--r-- | ucb/source/ucp/gio/gio_datasupplier.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/package/pkgdatasupplier.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_datasupplier.cxx | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index ba01d7508f7b..e8fe5322d5fe 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -2657,7 +2657,7 @@ TaskManager::notifyInsert( std::vector< ContentEventNotifier* >* listeners,const while( it != listeners->end() ) { (*it)->notifyChildInserted( aChildName ); - delete (*it); + delete *it; ++it; } delete listeners; @@ -2671,7 +2671,7 @@ TaskManager::notifyContentDeleted( std::vector< ContentEventNotifier* >* listene while( it != listeners->end() ) { (*it)->notifyDeleted(); - delete (*it); + delete *it; ++it; } delete listeners; @@ -2686,7 +2686,7 @@ TaskManager::notifyContentRemoved( std::vector< ContentEventNotifier* >* listene while( it != listeners->end() ) { (*it)->notifyRemoved( aChildName ); - delete (*it); + delete *it; ++it; } delete listeners; @@ -2724,7 +2724,7 @@ TaskManager::notifyPropertyAdded( std::vector< PropertySetInfoChangeNotifier* >* while( it != listeners->end() ) { (*it)->notifyPropertyAdded( aPropertyName ); - delete (*it); + delete *it; ++it; } delete listeners; @@ -2739,7 +2739,7 @@ TaskManager::notifyPropertyRemoved( std::vector< PropertySetInfoChangeNotifier* while( it != listeners->end() ) { (*it)->notifyPropertyRemoved( aPropertyName ); - delete (*it); + delete *it; ++it; } delete listeners; @@ -2853,7 +2853,7 @@ TaskManager::notifyContentExchanged( std::vector< std::vector< ContentEventNotif while( it != listeners->end() ) { (*it)->notifyExchanged(); - delete (*it); + delete *it; ++it; } delete listeners; @@ -2892,7 +2892,7 @@ void TaskManager::notifyPropertyChanges( std::vector< PropertyChangeNotifier* >* while( it != listeners->end() ) { (*it)->notifyPropertyChanged( seqChanged ); - delete (*it); + delete *it; ++it; } delete listeners; diff --git a/ucb/source/ucp/gio/gio_datasupplier.cxx b/ucb/source/ucp/gio/gio_datasupplier.cxx index bbb0cbcca594..d459ec12ff85 100644 --- a/ucb/source/ucp/gio/gio_datasupplier.cxx +++ b/ucb/source/ucp/gio/gio_datasupplier.cxx @@ -90,7 +90,7 @@ DataSupplier::~DataSupplier() while ( it != end ) { - delete (*it); + delete *it; ++it; } } diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx index 9d6f4074090c..a1852326c14a 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx @@ -95,7 +95,7 @@ DataSupplier_Impl::~DataSupplier_Impl() while ( it != end ) { - delete (*it); + delete *it; ++it; } } diff --git a/ucb/source/ucp/package/pkgdatasupplier.cxx b/ucb/source/ucp/package/pkgdatasupplier.cxx index 36baef380ae6..dff19828ceed 100644 --- a/ucb/source/ucp/package/pkgdatasupplier.cxx +++ b/ucb/source/ucp/package/pkgdatasupplier.cxx @@ -95,7 +95,7 @@ DataSupplier_Impl::~DataSupplier_Impl() while ( it != end ) { - delete (*it); + delete *it; ++it; } } diff --git a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx index f33a116d978f..5a36dded1271 100644 --- a/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx +++ b/ucb/source/ucp/tdoc/tdoc_datasupplier.cxx @@ -91,7 +91,7 @@ DataSupplier_Impl::~DataSupplier_Impl() while ( it != end ) { - delete (*it); + delete *it; ++it; } |