You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -64,7 +64,7 @@ class ScriptTextEditor : public ScriptEditorBase {
|
||||
Vector<String> functions;
|
||||
List<ScriptLanguage::Warning> warnings;
|
||||
List<ScriptLanguage::ScriptError> errors;
|
||||
Set<int> safe_lines;
|
||||
RBSet<int> safe_lines;
|
||||
|
||||
List<Connection> missing_connections;
|
||||
|
||||
@@ -175,7 +175,7 @@ protected:
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods();
|
||||
|
||||
Map<String, Ref<EditorSyntaxHighlighter>> highlighters;
|
||||
HashMap<String, Ref<EditorSyntaxHighlighter>> highlighters;
|
||||
void _change_syntax_highlighter(int p_idx);
|
||||
|
||||
void _edit_option(int p_op);
|
||||
|
||||
Reference in New Issue
Block a user