aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/Collision/RegularGrid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Collision/RegularGrid.h b/src/common/Collision/RegularGrid.h
index 84aa6572486..5de9d80c893 100644
--- a/src/common/Collision/RegularGrid.h
+++ b/src/common/Collision/RegularGrid.h
@@ -59,14 +59,14 @@ public:
{
Node& node = getGrid(x, y);
node.insert(value);
- memberTable.insert(MemberTable::value_type(&value, &node));
+ memberTable.emplace(&value, &node);
}
}
}
void remove(const T& value)
{
- for (typename MemberTable::value_type& p : Trinity::Containers::MapEqualRange(memberTable, &value))
+ for (auto& p : Trinity::Containers::MapEqualRange(memberTable, &value))
p.second->remove(value);
// Remove the member
memberTable.erase(&value);