summaryrefslogtreecommitdiff
path: root/boost/geometry/index/rtree.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/index/rtree.hpp')
-rw-r--r--boost/geometry/index/rtree.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/boost/geometry/index/rtree.hpp b/boost/geometry/index/rtree.hpp
index ea7fc74ed3..6d3704ff8c 100644
--- a/boost/geometry/index/rtree.hpp
+++ b/boost/geometry/index/rtree.hpp
@@ -1263,16 +1263,16 @@ public:
inline bounds_type bounds() const
{
bounds_type result;
- if ( !m_members.root )
+ // in order to suppress the uninitialized variable warnings
+ geometry::assign_inverse(result);
+
+ if ( m_members.root )
{
- geometry::assign_inverse(result);
- return result;
+ detail::rtree::visitors::children_box<value_type, options_type, translator_type, box_type, allocators_type>
+ box_v(result, m_members.translator());
+ detail::rtree::apply_visitor(box_v, *m_members.root);
}
- detail::rtree::visitors::children_box<value_type, options_type, translator_type, box_type, allocators_type>
- box_v(result, m_members.translator());
- detail::rtree::apply_visitor(box_v, *m_members.root);
-
return result;
}