diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-19 13:10:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-19 14:38:35 +0200 |
commit | 8fced917aa1af58216cbde56720f2f473eed86d9 (patch) | |
tree | 755d0dfba1fe4a5c34860d0d1ea4c6ce01525405 /basegfx | |
parent | f0110f798cee31ff87651dc2377eacef2ab8a8b7 (diff) |
clang-tidy readability-simplify-boolean-expr in accessibility..cui
Change-Id: Iae27da322c6ede592e6b268fb2210d3525ed22cc
Reviewed-on: https://gerrit.libreoffice.org/36677
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/curve/b2dcubicbezier.cxx | 7 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolygontools.cxx | 9 |
2 files changed, 2 insertions, 14 deletions
diff --git a/basegfx/source/curve/b2dcubicbezier.cxx b/basegfx/source/curve/b2dcubicbezier.cxx index ca4aa090625f..72fabc476327 100644 --- a/basegfx/source/curve/b2dcubicbezier.cxx +++ b/basegfx/source/curve/b2dcubicbezier.cxx @@ -395,12 +395,7 @@ namespace basegfx // test if vectors are used bool B2DCubicBezier::isBezier() const { - if(maControlPointA != maStartPoint || maControlPointB != maEndPoint) - { - return true; - } - - return false; + return maControlPointA != maStartPoint || maControlPointB != maEndPoint; } void B2DCubicBezier::testAndSolveTrivialBezier() diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index 8253c24f6226..9a2667a553a8 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -1418,14 +1418,7 @@ namespace basegfx const B2DVector aDelta(rTestPosition - aCutPoint); const double fDistanceSquare(aDelta.scalar(aDelta)); - if(fDistanceSquare <= fDistance * fDistance) - { - return true; - } - else - { - return false; - } + return fDistanceSquare <= fDistance * fDistance; } } |