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:
@ -45,7 +45,7 @@ Error RDShaderFile::parse_versions_from_text(const String &p_text, const String
|
||||
};
|
||||
String stage_code[RD::SHADER_STAGE_MAX];
|
||||
int stages_found = 0;
|
||||
Map<StringName, String> version_texts;
|
||||
HashMap<StringName, String> version_texts;
|
||||
|
||||
versions.clear();
|
||||
base_error = "";
|
||||
|
||||
Reference in New Issue
Block a user