Skip to content

Commit 5b6502d

Browse files
ExprConcatStrings no longer consumes the vector argument
Co-authored-by: John Ericson <[email protected]>
1 parent 69fa3df commit 5b6502d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libexpr/include/nix/expr/nixexpr.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ struct ExprConcatStrings : Expr
766766
std::pmr::polymorphic_allocator<char> & alloc,
767767
const PosIdx & pos,
768768
bool forceString,
769-
std::vector<std::pair<PosIdx, Expr *>> && es)
769+
const std::vector<std::pair<PosIdx, Expr *>> & es)
770770
: pos(pos)
771771
, forceString(forceString)
772772
, es({alloc.allocate_object<std::pair<PosIdx, Expr *>>(es.size()), es.size()})

0 commit comments

Comments
 (0)