diff --git a/GeoLib/QuadTree.h b/GeoLib/QuadTree.h index 650e39748b17192f049e4b508a83859fe33d2384..f115d99780f8634435a6cd426645b7f0c25ba76f 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