You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
bool ImageFormatLoader::recognize(const String &p_extension) const {
|
||||
List<String> extensions;
|
||||
get_recognized_extensions(&extensions);
|
||||
for (String &E : extensions) {
|
||||
for (const String &E : extensions) {
|
||||
if (E.nocasecmp_to(p_extension) == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user