diff --git a/core/command_line_parser.cpp b/core/command_line_parser.cpp index 68d93147..4f9cd459 100644 --- a/core/command_line_parser.cpp +++ b/core/command_line_parser.cpp @@ -460,9 +460,9 @@ String CommandLineParser::_get_usage(const Vector &p_categories_data) const { +String CommandLineParser::_get_options_description(const HashMap &p_categories_data) const { String description; - for (OrderedHashMap::ConstElement E = p_categories_data.front(); E; E = E.next()) { + for (HashMap::ConstElement E = p_categories_data.front(); E; E = E.next()) { const String &category = E.key(); const PackedStringArray &lines = E.value(); @@ -685,7 +685,7 @@ Error CommandLineParser::parse(const PackedStringArray &p_args) { } for (int i = 0; i < _options.size(); ++i) { CommandLineOption *option = _options.get(i).ptr(); - const Map::Element *E = _parsed_values.find(option); + HashMap::Element *E = _parsed_values.find(option); if (E) { option->emit_signal("parsed", E->value()); } @@ -801,7 +801,7 @@ String CommandLineParser::get_value(const Ref &p_option) cons PackedStringArray CommandLineParser::get_value_list(const Ref &p_option) const { ERR_FAIL_COND_V(p_option.is_null(), PackedStringArray()); ERR_FAIL_COND_V_MSG(p_option->get_arg_count() == 0, PackedStringArray(), vformat("Option '%s' does not accept arguments.", _to_string(p_option->get_names()))); - const Map::Element *E = _parsed_values.find(p_option.ptr()); + HashMap::Element *E = _parsed_values.find(p_option.ptr()); if (!E) { return PackedStringArray(); } @@ -819,7 +819,7 @@ String CommandLineParser::get_prefix(const Ref &p_option) con PackedStringArray CommandLineParser::get_prefix_list(const Ref &p_option) const { ERR_FAIL_COND_V(p_option.is_null(), PackedStringArray()); - const Map::Element *E = _parsed_prefixes.find(p_option.ptr()); + HashMap::Element *E = _parsed_prefixes.find(p_option.ptr()); if (!E) { return PackedStringArray(); } @@ -828,7 +828,7 @@ PackedStringArray CommandLineParser::get_prefix_list(const Ref &p_option) const { ERR_FAIL_COND_V(p_option.is_null(), 0); - const Map::Element *E = _parsed_count.find(p_option.ptr()); + HashMap::Element *E = _parsed_count.find(p_option.ptr()); if (!E) { return 0; } @@ -866,7 +866,7 @@ String CommandLineParser::get_help_text(const Ref &p_form const int descriptions_length = format->get_line_length() - options_length; // Fill categories and their data. - OrderedHashMap categories_data; + HashMap categories_data; for (int i = 0; i < printable_options.size(); ++i) { String line = printable_options[i].second.rpad(options_length - format->get_left_pad()); line = line.lpad(line.length() + format->get_left_pad()); diff --git a/core/command_line_parser.h b/core/command_line_parser.h index 9feed389..9b582894 100644 --- a/core/command_line_parser.h +++ b/core/command_line_parser.h @@ -137,9 +137,9 @@ class CommandLineParser : public RefCounted { PackedStringArray _long_prefixes; PackedStringArray _short_prefixes; - Map _parsed_values; - Map _parsed_prefixes; - Map _parsed_count; + HashMap _parsed_values; + HashMap _parsed_prefixes; + HashMap _parsed_count; String _error_text; @@ -173,7 +173,7 @@ class CommandLineParser : public RefCounted { // Help text printers. String _get_usage(const Vector> &p_printable_options, const String &p_title) const; - String _get_options_description(const OrderedHashMap &p_categories_data) const; + String _get_options_description(const HashMap &p_categories_data) const; // Other utilies. String _to_string(const PackedStringArray &p_names) const; // Returns all option names separated by commas with all prefix variants. diff --git a/core/goost_engine.cpp b/core/goost_engine.cpp index c3273b5c..9f5a314a 100644 --- a/core/goost_engine.cpp +++ b/core/goost_engine.cpp @@ -94,7 +94,7 @@ Dictionary GoostEngine::get_color_constants() const { _populate_named_colors(); // color_names.inc } Dictionary colors; - for (Map::Element *E = _named_colors.front(); E; E = E->next()) { + for (HashMap::Element *E = _named_colors.front(); E; E = E->next()) { colors[E->key()] = E->get(); } return colors; diff --git a/core/math/geometry/2d/poly/boolean/clipper10/poly_boolean_clipper10.cpp b/core/math/geometry/2d/poly/boolean/clipper10/poly_boolean_clipper10.cpp index a68534e9..4bdaa12e 100644 --- a/core/math/geometry/2d/poly/boolean/clipper10/poly_boolean_clipper10.cpp +++ b/core/math/geometry/2d/poly/boolean/clipper10/poly_boolean_clipper10.cpp @@ -44,7 +44,7 @@ void PolyBoolean2DClipper10::boolean_polypaths_tree(const Vector> clp.Execute(clip_type, tree, solution_open, subject_fill_rule); List to_visit; - Map nodes; + HashMap nodes; nodes.insert(&tree, r_root); to_visit.push_back(&tree); diff --git a/core/math/geometry/2d/poly/boolean/clipper6/poly_boolean_clipper6.cpp b/core/math/geometry/2d/poly/boolean/clipper6/poly_boolean_clipper6.cpp index dc1be0df..e57cb9fb 100644 --- a/core/math/geometry/2d/poly/boolean/clipper6/poly_boolean_clipper6.cpp +++ b/core/math/geometry/2d/poly/boolean/clipper6/poly_boolean_clipper6.cpp @@ -49,7 +49,7 @@ void PolyBoolean2DClipper6::boolean_polypaths_tree(const Vector> clp.Execute(clip_type, tree, subject_fill_type, clip_fill_type); List to_visit; - Map nodes; + HashMap nodes; nodes.insert(&tree, r_root); to_visit.push_back(&tree); diff --git a/core/script/mixin_script/mixin_script.cpp b/core/script/mixin_script/mixin_script.cpp index 646fb263..c5b25359 100644 --- a/core/script/mixin_script/mixin_script.cpp +++ b/core/script/mixin_script/mixin_script.cpp @@ -236,7 +236,7 @@ void MixinScript::set_mixin(int p_idx, const Ref