From 585277298a895ad0e3a97169b549c08f6f72d6e4 Mon Sep 17 00:00:00 2001 From: Alexander Wiebel Date: Wed, 1 Mar 2017 01:31:34 +0100 Subject: [PATCH] [FIX] fixed code according to warning to eliminate warning --- LiDARToolbox/src/common/datastructures/octree/WOctNode.cpp | 2 +- LiDARToolbox/src/common/datastructures/quadtree/WQuadNode.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LiDARToolbox/src/common/datastructures/octree/WOctNode.cpp b/LiDARToolbox/src/common/datastructures/octree/WOctNode.cpp index c7cc327..94d10cf 100644 --- a/LiDARToolbox/src/common/datastructures/octree/WOctNode.cpp +++ b/LiDARToolbox/src/common/datastructures/octree/WOctNode.cpp @@ -167,7 +167,7 @@ size_t WOctNode::getTotalNodeCount() void WOctNode::touchPosition( double x, double y, double z ) { - if( !m_pointCount > 0 ) + if( !( m_pointCount > 0 ) ) { m_xMin = m_xMax = x; m_yMin = m_yMax = y; diff --git a/LiDARToolbox/src/common/datastructures/quadtree/WQuadNode.cpp b/LiDARToolbox/src/common/datastructures/quadtree/WQuadNode.cpp index a6d4380..14ceffe 100644 --- a/LiDARToolbox/src/common/datastructures/quadtree/WQuadNode.cpp +++ b/LiDARToolbox/src/common/datastructures/quadtree/WQuadNode.cpp @@ -117,7 +117,7 @@ double WQuadNode::getCenter( size_t dimension ) void WQuadNode::updateMinMax( double x, double y, double value ) { - if( !m_pointCount > 0 ) + if( !( m_pointCount > 0 ) ) { m_xMin = m_xMax = x; m_yMin = m_yMax = y; -- GitLab