diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-15 12:56:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-18 07:15:57 +0100 |
commit | aa51774e6a309f277e71ca3a3b9d5d5b4b3dbf1a (patch) | |
tree | c69ad9f8591f69749699ddd7c108238820532eb3 /svgio | |
parent | 9712dd74bfb0c9b99cab37bd147fe267b48c6d7d (diff) |
loplugin:simplifybool, check for !(!a op !b)
Change-Id: Ic3ee9c05705817580633506498f848aac3ab7ba6
Reviewed-on: https://gerrit.libreoffice.org/67866
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/source/svgreader/svgclippathnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgmasknode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgstylenode.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/svgio/source/svgreader/svgclippathnode.cxx b/svgio/source/svgreader/svgclippathnode.cxx index 090a795da3ac..8d09b51db7ca 100644 --- a/svgio/source/svgreader/svgclippathnode.cxx +++ b/svgio/source/svgreader/svgclippathnode.cxx @@ -127,7 +127,7 @@ namespace svgio drawinglayer::primitive2d::Primitive2DContainer& rContent, const basegfx::B2DHomMatrix* pTransform) const { - if(!(!rContent.empty() && Display_none != getDisplay())) + if(rContent.empty() || Display_none == getDisplay()) return; const drawinglayer::geometry::ViewInformation2D aViewInformation2D; diff --git a/svgio/source/svgreader/svgmasknode.cxx b/svgio/source/svgreader/svgmasknode.cxx index f2a919c4582f..286a1088ab60 100644 --- a/svgio/source/svgreader/svgmasknode.cxx +++ b/svgio/source/svgreader/svgmasknode.cxx @@ -192,7 +192,7 @@ namespace svgio drawinglayer::primitive2d::Primitive2DContainer& rTarget, const basegfx::B2DHomMatrix* pTransform) const { - if(!(!rTarget.empty() && Display_none != getDisplay())) + if(rTarget.empty() || Display_none == getDisplay()) return; drawinglayer::primitive2d::Primitive2DContainer aMaskTarget; diff --git a/svgio/source/svgreader/svgstylenode.cxx b/svgio/source/svgreader/svgstylenode.cxx index 68a101fb9637..cb81941dbbda 100644 --- a/svgio/source/svgreader/svgstylenode.cxx +++ b/svgio/source/svgreader/svgstylenode.cxx @@ -147,7 +147,7 @@ namespace svgio { // aSelectors: possible comma-separated list of CssStyle definitions, no spaces at start/end // aContent: the svg style definitions as string - if(!(!aSelectors.isEmpty() && !aContent.isEmpty())) + if(aSelectors.isEmpty() || aContent.isEmpty()) return; // create new style and add to local list (for ownership control) |