File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,22 +302,22 @@ namespace geode
302302 {
303303 {
304304 std::shared_lock read_lock{ mutex_ };
305- const auto it = aabb_trees_.find ( surface.id () );
306- if ( it != aabb_trees_.end () )
305+ const auto tree_it = aabb_trees_.find ( surface.id () );
306+ if ( tree_it != aabb_trees_.end () )
307307 {
308- return *it ->second ;
308+ return *tree_it ->second ;
309309 }
310310 }
311311 std::lock_guard write_lock{ mutex_ };
312- const auto it = aabb_trees_.find ( surface.id () );
313- if ( it != aabb_trees_.end () )
312+ const auto tree_it = aabb_trees_.find ( surface.id () );
313+ if ( tree_it != aabb_trees_.end () )
314314 {
315- return *it ->second ;
315+ return *tree_it ->second ;
316316 }
317- const auto [it , inserted] = aabb_trees_.emplace (
317+ const auto [new_tree_it , inserted] = aabb_trees_.emplace (
318318 surface.id (), std::make_unique< AABBTree3D >(
319319 create_aabb_tree ( surface.mesh () ) ) );
320- return *it ->second ;
320+ return *new_tree_it ->second ;
321321 }
322322
323323 private:
You can’t perform that action at this time.
0 commit comments