summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 09:01:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-17 09:32:03 +0100
commit23885b06b185142d6ef4a3ceccfd3b5ad915a65f (patch)
tree868cf1ca4c2d1f9e18136497fc745a74b365bced /sw
parent4a64a68c6828b7cf0e57ee40817f4ab1a8a75aea (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 'sw')
-rw-r--r--sw/source/core/doc/doctxm.cxx2
-rw-r--r--sw/source/core/layout/objectformatter.cxx2
-rw-r--r--sw/source/core/view/pagepreviewlayout.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 6dd0a3a6cd11..e19316445785 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -490,7 +490,7 @@ void SwDoc::SetDefaultTOXBase(const SwTOXBase& rBase)
}
if (!prBase)
return;
- delete (*prBase);
+ delete *prBase;
(*prBase) = new SwTOXBase(rBase);
}
diff --git a/sw/source/core/layout/objectformatter.cxx b/sw/source/core/layout/objectformatter.cxx
index a821eb5b10c4..a0621956e730 100644
--- a/sw/source/core/layout/objectformatter.cxx
+++ b/sw/source/core/layout/objectformatter.cxx
@@ -55,7 +55,7 @@ class SwPageNumAndTypeOfAnchors
for ( std::vector< tEntry* >::iterator aIter = maObjList.begin();
aIter != maObjList.end(); ++aIter )
{
- delete (*aIter);
+ delete *aIter;
}
maObjList.clear();
}
diff --git a/sw/source/core/view/pagepreviewlayout.cxx b/sw/source/core/view/pagepreviewlayout.cxx
index 3a13cc7f8ae4..61315e73e4b3 100644
--- a/sw/source/core/view/pagepreviewlayout.cxx
+++ b/sw/source/core/view/pagepreviewlayout.cxx
@@ -109,7 +109,7 @@ void SwPagePreviewLayout::ClearPreviewPageData()
aPageDelIter != maPreviewPages.end();
++aPageDelIter )
{
- delete (*aPageDelIter);
+ delete *aPageDelIter;
}
maPreviewPages.clear();
}