You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Replace most uses of Map by HashMap
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
This commit is contained in:
@@ -327,7 +327,7 @@ void EditorSettingsDialog::_create_shortcut_treeitem(TreeItem *p_parent, const S
|
||||
|
||||
void EditorSettingsDialog::_update_shortcuts() {
|
||||
// Before clearing the tree, take note of which categories are collapsed so that this state can be maintained when the tree is repopulated.
|
||||
Map<String, bool> collapsed;
|
||||
HashMap<String, bool> collapsed;
|
||||
|
||||
if (shortcuts->get_root() && shortcuts->get_root()->get_first_child()) {
|
||||
TreeItem *ti = shortcuts->get_root()->get_first_child();
|
||||
@@ -359,7 +359,7 @@ void EditorSettingsDialog::_update_shortcuts() {
|
||||
shortcuts->clear();
|
||||
|
||||
TreeItem *root = shortcuts->create_item();
|
||||
Map<String, TreeItem *> sections;
|
||||
HashMap<String, TreeItem *> sections;
|
||||
|
||||
// Set up section for Common/Built-in actions
|
||||
TreeItem *common_section = shortcuts->create_item(root);
|
||||
|
||||
Reference in New Issue
Block a user