add some more constness
This commit is contained in:
parent
3b51976b96
commit
0ab6220635
@ -646,7 +646,7 @@ class StaticRTree
|
|||||||
LoadLeafFromDisk(current_tree_node.children[0], current_leaf_node);
|
LoadLeafFromDisk(current_tree_node.children[0], current_leaf_node);
|
||||||
for (uint32_t i = 0; i < current_leaf_node.object_count; ++i)
|
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)
|
if (ignore_tiny_components && current_edge.is_in_tiny_cc)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
@ -700,8 +700,8 @@ class StaticRTree
|
|||||||
for (uint32_t i = 0; i < current_tree_node.child_count; ++i)
|
for (uint32_t i = 0; i < current_tree_node.child_count; ++i)
|
||||||
{
|
{
|
||||||
const int32_t child_id = current_tree_node.children[i];
|
const int32_t child_id = current_tree_node.children[i];
|
||||||
TreeNode &child_tree_node = m_search_tree[child_id];
|
const TreeNode &child_tree_node = m_search_tree[child_id];
|
||||||
RectangleT &child_rectangle = child_tree_node.minimum_bounding_rectangle;
|
const RectangleT &child_rectangle = child_tree_node.minimum_bounding_rectangle;
|
||||||
const float current_min_dist =
|
const float current_min_dist =
|
||||||
child_rectangle.GetMinDist(input_coordinate);
|
child_rectangle.GetMinDist(input_coordinate);
|
||||||
const float current_min_max_dist =
|
const float current_min_max_dist =
|
||||||
|
Loading…
Reference in New Issue
Block a user