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:
parent
396def9b66
commit
746dddc067
587 changed files with 3707 additions and 3538 deletions
|
|
@ -331,7 +331,7 @@ void DocTools::generate(bool p_basic_types) {
|
|||
bool skip_setter_getter_methods = true;
|
||||
|
||||
while (classes.size()) {
|
||||
Set<StringName> setters_getters;
|
||||
RBSet<StringName> setters_getters;
|
||||
|
||||
String name = classes.front()->get();
|
||||
if (!ClassDB::is_class_exposed(name)) {
|
||||
|
|
@ -1337,7 +1337,7 @@ static void _write_method_doc(Ref<FileAccess> f, const String &p_name, Vector<Do
|
|||
}
|
||||
}
|
||||
|
||||
Error DocTools::save_classes(const String &p_default_path, const Map<String, String> &p_class_path) {
|
||||
Error DocTools::save_classes(const String &p_default_path, const HashMap<String, String> &p_class_path) {
|
||||
for (KeyValue<String, DocData::ClassDoc> &E : class_list) {
|
||||
DocData::ClassDoc &c = E.value;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue