mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05: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