Change List copy constructor from implicit to explicit.

This commit is contained in:
Lukas Tenbrink 2026-01-30 18:58:42 +01:00
parent d48f9d45e2
commit 7072a9a874
20 changed files with 29 additions and 32 deletions

View file

@ -6531,7 +6531,7 @@ void GDScriptAnalyzer::resolve_pending_lambda_bodies() {
GDScriptParser::LambdaNode *previous_lambda = current_lambda;
bool previous_static_context = static_context;
List<GDScriptParser::LambdaNode *> lambdas = pending_body_resolution_lambdas;
List<GDScriptParser::LambdaNode *> lambdas = std::move(pending_body_resolution_lambdas);
pending_body_resolution_lambdas.clear();
for (GDScriptParser::LambdaNode *lambda : lambdas) {