You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -122,7 +122,7 @@ String JSON::_stringify(const Variant &p_var, const String &p_indent, int p_cur_
|
||||
}
|
||||
|
||||
bool first_key = true;
|
||||
for (Variant &E : keys) {
|
||||
for (const Variant &E : keys) {
|
||||
if (first_key) {
|
||||
first_key = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user