mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 23:13:47 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -349,16 +349,16 @@ void RoutePointsLayout::SetFollowingMode(bool enabled)
|
||||
|
||||
void RoutePointsLayout::RemovePassedPoints()
|
||||
{
|
||||
// Prevent recalculation of markIds at every iteration, since we are removing elements
|
||||
auto markIds = m_manager.GetUserMarkIds(UserMark::Type::ROUTING);
|
||||
for (auto markId : markIds) {
|
||||
auto * mark = m_editSession.GetMarkForEdit<RouteMarkPoint>(markId);
|
||||
if (mark && mark->IsPassed() && mark->GetRoutePointType() == RouteMarkType::Intermediate)
|
||||
m_editSession.DeleteUserMark(mark->GetId());
|
||||
}
|
||||
// Prevent recalculation of markIds at every iteration, since we are removing elements
|
||||
auto markIds = m_manager.GetUserMarkIds(UserMark::Type::ROUTING);
|
||||
for (auto markId : markIds)
|
||||
{
|
||||
auto * mark = m_editSession.GetMarkForEdit<RouteMarkPoint>(markId);
|
||||
if (mark && mark->IsPassed() && mark->GetRoutePointType() == RouteMarkType::Intermediate)
|
||||
m_editSession.DeleteUserMark(mark->GetId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
RouteMarkPoint const * RoutePointsLayout::GetRoutePoint(RouteMarkType type, size_t intermediateIndex) const
|
||||
{
|
||||
for (auto markId : m_manager.GetUserMarkIds(UserMark::Type::ROUTING))
|
||||
|
||||
Reference in New Issue
Block a user