You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use const references where possible for List range iterators
This commit is contained in:
@@ -981,7 +981,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
|
||||
assigned = prev_base;
|
||||
|
||||
// Set back the values into their bases.
|
||||
for (ChainInfo &info : set_chain) {
|
||||
for (const ChainInfo &info : set_chain) {
|
||||
if (!info.is_named) {
|
||||
gen->write_set(info.base, info.key, assigned);
|
||||
if (info.key.mode == GDScriptCodeGenerator::Address::TEMPORARY) {
|
||||
|
||||
Reference in New Issue
Block a user