From da5eb4e676fac53a5bff3a167c4fb1525fa4abd4 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Fri, 21 Jun 2019 20:40:10 +0200 Subject: [PATCH] [GL] QuadTree; Simplify if-conditions; bool return --- GeoLib/QuadTree.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/GeoLib/QuadTree.h b/GeoLib/QuadTree.h index 650e39748b1..f115d99780f 100644 --- a/GeoLib/QuadTree.h +++ b/GeoLib/QuadTree.h @@ -344,11 +344,7 @@ private: bool isChild (QuadTree<POINT> const* const tree, Quadrant quadrant) const { - if (_children[static_cast<int>(quadrant)] == tree) - { - return true; - } - return false; + return _children[static_cast<int>(quadrant)] == tree; } QuadTree<POINT>* getNorthNeighbor () const -- GitLab