From 2450705aa0b4e6f2297ef8f2436282d7a0d17ca3 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 1 Jun 2023 17:48:24 +0100 Subject: [PATCH] Use btree map for tracerestrict GUI drop down list mapping --- src/tracerestrict_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tracerestrict_gui.cpp b/src/tracerestrict_gui.cpp index 0c6edb70aa..1bd7bf6663 100644 --- a/src/tracerestrict_gui.cpp +++ b/src/tracerestrict_gui.cpp @@ -47,6 +47,7 @@ #include "infrastructure_func.h" #include "zoom_func.h" #include "core/span_type.hpp" +#include "3rdparty/cpp-btree/btree_map.h" #include "safeguards.h" @@ -1755,7 +1756,7 @@ class TraceRestrictWindow: public Window { Track track; ///< track this window is for int selected_instruction; ///< selected instruction index, this is offset by one due to the display of the "start" item Scrollbar *vscroll; ///< scrollbar widget - std::map drop_down_list_mapping; ///< mapping of widget IDs to drop down list sets + btree::btree_map drop_down_list_mapping; ///< mapping of widget IDs to drop down list sets bool value_drop_down_is_company; ///< TR_WIDGET_VALUE_DROPDOWN is a company list TraceRestrictItem expecting_inserted_item; ///< set to instruction when performing an instruction insertion, used to handle selection update on insertion int current_placement_widget; ///< which widget has a SetObjectToPlaceWnd, if any