Skip to content

Commit 2f649c7

Browse files
authored
refactor: use rvalue references for vector parameters in FnApplicationExpr constructor
1 parent ef0c7be commit 2f649c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/cura-formulae-engine/ast/fn_application_expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct FnApplicationExpr final : Expr
2323
std::vector<ExprPtr> args;
2424
std::vector<KeywordArg> kwargs;
2525

26-
FnApplicationExpr(ExprPtr fn, std::vector<ExprPtr> args, std::vector<KeywordArg> kwargs = {})
26+
FnApplicationExpr(ExprPtr fn, std::vector<ExprPtr>&& args, std::vector<KeywordArg>&& kwargs = {})
2727
: fn(std::move(fn))
2828
, args(std::move(args))
2929
, kwargs(std::move(kwargs))

0 commit comments

Comments
 (0)