Skip to content

Commit

Permalink
Changed to std::map in_stead of unordered_map
Browse files Browse the repository at this point in the history
Signed-off-by: tanjunkiat <[email protected]>
  • Loading branch information
TanJunKiat committed Dec 18, 2024
1 parent 3251831 commit 79df2fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rmf_traffic_editor/gui/delete_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ DeleteDialog::DeleteDialog(
std::string s;

auto num_used_edges = level.edges_with_vertex(selected_vertex_idx).size();
std::unordered_map<std::string, int> edge_types;
std::map<std::string, int> edge_types;
for (const auto& edge : level.edges_with_vertex(selected_vertex_idx))
{
edge_types[edge.type_to_string()]++;
Expand All @@ -76,7 +76,7 @@ DeleteDialog::DeleteDialog(

auto num_used_polygons =
level.polygons_with_vertex(selected_vertex_idx).size();
std::unordered_map<std::string, int> polygon_types;
std::map<std::string, int> polygon_types;
for (const auto& polygon : level.polygons_with_vertex(selected_vertex_idx))
{
polygon_types[polygon.type_to_string()]++;
Expand Down
2 changes: 1 addition & 1 deletion rmf_traffic_editor/gui/delete_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <vector>
#include <string>
#include <utility>
#include <unordered_map>
#include <map>
#include "building.h"
class QLineEdit;
class QListWidget;
Expand Down

0 comments on commit 79df2fd

Please sign in to comment.