diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-12 11:21:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-28 11:23:34 +0200 |
commit | 9348b322a5c230dfcc2231661b73e480b130fcd9 (patch) | |
tree | 2c81a97d6f54229c87c5e2a37c73935ffc2527ac /svgio | |
parent | 5bcd18461b8cb63b477dbb74025374b4c963161a (diff) |
clang-tidy readability-simplify-boolean-expr
Change-Id: Iea7ab64683f0b29794d50d774cc482b54a00e70a
Reviewed-on: https://gerrit.libreoffice.org/36450
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/source/svgreader/svgtextpathnode.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/svgio/source/svgreader/svgtextpathnode.cxx b/svgio/source/svgreader/svgtextpathnode.cxx index 0608a71b8ee4..bb4c2ce85a3d 100644 --- a/svgio/source/svgreader/svgtextpathnode.cxx +++ b/svgio/source/svgreader/svgtextpathnode.cxx @@ -367,12 +367,7 @@ namespace svgio const double fBasegfxPathLength(basegfx::tools::getLength(aPolygon)); - if(basegfx::fTools::equalZero(fBasegfxPathLength)) - { - return false; - } - - return true; + return !basegfx::fTools::equalZero(fBasegfxPathLength); } void SvgTextPathNode::decomposePathNode( |