Skip to content

Commit 7f590ec

Browse files
committed
Now GUIViewObjectsHandler uses hash map. Refs #14175
1 parent 418cf45 commit 7f590ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/gui/div/GUIViewObjectsHandler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <config.h>
2222

2323
#include <vector>
24+
#include <unordered_map>
2425
#include <utils/gui/globjects/GUIGlObject.h>
2526
#include <utils/gui/settings/GUIVisualizationSettings.h>
2627

@@ -201,7 +202,7 @@ class GUIViewObjectsHandler {
201202
GLObjectsSortedContainer mySortedSelectedObjects;
202203

203204
/// @brief map with selected elements and if was selected with full boundary (used only to avoid double selections)
204-
std::map<const GUIGlObject*, std::pair<bool, const GNESegment*> > mySelectedObjects;
205+
std::unordered_map<const GUIGlObject*, std::pair<bool, const GNESegment*> > mySelectedObjects;
205206

206207
/// @brief number of selected objects
207208
int myNumberOfSelectedObjects = 0;

0 commit comments

Comments
 (0)