From ac3322b0af8f23e8e2dac8111200bc69b5604c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 24 Jul 2021 15:46:25 +0200 Subject: Use const references where possible for List range iterators --- core/io/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/io/json.cpp') diff --git a/core/io/json.cpp b/core/io/json.cpp index 0381b78172..5823afbdcd 100644 --- a/core/io/json.cpp +++ b/core/io/json.cpp @@ -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 { -- cgit v1.2.3