From 0ab62206357cd04eb0dd9ae297b8b49a85d89607 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 26 May 2014 18:35:37 +0200 Subject: [PATCH] add some more constness --- DataStructures/StaticRTree.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DataStructures/StaticRTree.h b/DataStructures/StaticRTree.h index fbaff1368..73cc42c22 100644 --- a/DataStructures/StaticRTree.h +++ b/DataStructures/StaticRTree.h @@ -646,7 +646,7 @@ class StaticRTree LoadLeafFromDisk(current_tree_node.children[0], current_leaf_node); for (uint32_t i = 0; i < current_leaf_node.object_count; ++i) { - DataT ¤t_edge = current_leaf_node.objects[i]; + const DataT ¤t_edge = current_leaf_node.objects[i]; if (ignore_tiny_components && current_edge.is_in_tiny_cc) { continue; @@ -700,8 +700,8 @@ class StaticRTree for (uint32_t i = 0; i < current_tree_node.child_count; ++i) { const int32_t child_id = current_tree_node.children[i]; - TreeNode &child_tree_node = m_search_tree[child_id]; - RectangleT &child_rectangle = child_tree_node.minimum_bounding_rectangle; + const TreeNode &child_tree_node = m_search_tree[child_id]; + const RectangleT &child_rectangle = child_tree_node.minimum_bounding_rectangle; const float current_min_dist = child_rectangle.GetMinDist(input_coordinate); const float current_min_max_dist =