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 /filter | |
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 'filter')
-rw-r--r-- | filter/source/flash/swfexporter.cxx | 2 | ||||
-rw-r--r-- | filter/source/xsltdialog/typedetectionimport.cxx | 4 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfilterjar.cxx | 2 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfiltersettingsdialog.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/flash/swfexporter.cxx b/filter/source/flash/swfexporter.cxx index c56a6ea1871e..608de8b4fdd8 100644 --- a/filter/source/flash/swfexporter.cxx +++ b/filter/source/flash/swfexporter.cxx @@ -65,7 +65,7 @@ PageInfo::~PageInfo() const std::vector<ShapeInfo*>::iterator aEnd( maShapesVector.end() ); while( aIter != aEnd ) { - delete (*aIter++); + delete *aIter++; } } diff --git a/filter/source/xsltdialog/typedetectionimport.cxx b/filter/source/xsltdialog/typedetectionimport.cxx index 823f71ca82f6..07c200d90dc8 100644 --- a/filter/source/xsltdialog/typedetectionimport.cxx +++ b/filter/source/xsltdialog/typedetectionimport.cxx @@ -76,13 +76,13 @@ void TypeDetectionImporter::fillFilterVector( XMLFilterVector& rFilters ) if( pFilter ) rFilters.push_back( pFilter ); - delete (*aIter++); + delete *aIter++; } // now delete type nodes aIter = maTypeNodes.begin(); while( aIter != maTypeNodes.end() ) - delete (*aIter++); + delete *aIter++; } static OUString getSubdata( int index, sal_Unicode delimiter, const OUString& rData ) diff --git a/filter/source/xsltdialog/xmlfilterjar.cxx b/filter/source/xsltdialog/xmlfilterjar.cxx index 896f6e8dc05d..1b92af47f6c5 100644 --- a/filter/source/xsltdialog/xmlfilterjar.cxx +++ b/filter/source/xsltdialog/xmlfilterjar.cxx @@ -284,7 +284,7 @@ void XMLFilterJarHelper::openPackage( const OUString& rPackageURL, XMLFilterVect else { // failed to copy all files - delete (*aIter); + delete *aIter; } ++aIter; } diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx index 2146ddd1a1be..c0f607e7f139 100644 --- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx @@ -1001,7 +1001,7 @@ void XMLFilterSettingsDialog::disposeFilterList() std::vector< filter_info_impl* >::iterator aIter( maFilterVector.begin() ); while( aIter != maFilterVector.end() ) { - delete (*aIter++); + delete *aIter++; } maFilterVector.clear(); |