diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-17 17:21:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 08:49:37 +0200 |
commit | eea6d3951b66f85df60574e10f19a81bfd7529cc (patch) | |
tree | 0509297cd8fb5e59750f45099e04bbea7be968cc /drawinglayer | |
parent | 0501869949b65b27303a41fd235a6ec32a4c90a7 (diff) |
loplugin:unnecessaryparen
look for statements like
return (function());
Change-Id: I906cf2183489f87225b99b987caca67e39b26cc3
Reviewed-on: https://gerrit.libreoffice.org/41260
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/baseprimitive2d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/primitive3d/baseprimitive3d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/primitive3d/textureprimitive3d.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive2d/baseprimitive2d.cxx b/drawinglayer/source/primitive2d/baseprimitive2d.cxx index 849fb1493379..bdb96f96d423 100644 --- a/drawinglayer/source/primitive2d/baseprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/baseprimitive2d.cxx @@ -231,7 +231,7 @@ namespace drawinglayer return false; } - return (pA->operator==(*pB)); + return pA->operator==(*pB); } bool Primitive2DContainer::operator==(const Primitive2DContainer& rB) const diff --git a/drawinglayer/source/primitive3d/baseprimitive3d.cxx b/drawinglayer/source/primitive3d/baseprimitive3d.cxx index 02ba16fda68c..d9d5804c69ff 100644 --- a/drawinglayer/source/primitive3d/baseprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/baseprimitive3d.cxx @@ -178,7 +178,7 @@ namespace drawinglayer return false; } - return (pA->operator==(*pB)); + return pA->operator==(*pB); } bool Primitive3DContainer::operator==(const Primitive3DContainer& rB) const diff --git a/drawinglayer/source/primitive3d/textureprimitive3d.cxx b/drawinglayer/source/primitive3d/textureprimitive3d.cxx index ee126a15c77e..fb8987f51f44 100644 --- a/drawinglayer/source/primitive3d/textureprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/textureprimitive3d.cxx @@ -197,7 +197,7 @@ namespace drawinglayer bool TransparenceTexturePrimitive3D::operator==(const BasePrimitive3D& rPrimitive) const { - return (GradientTexturePrimitive3D::operator==(rPrimitive)); + return GradientTexturePrimitive3D::operator==(rPrimitive); } // provide unique ID |