Skip to content

Commit d5fa131

Browse files
authored
Merge pull request #14161 from Radvendii/exprophasattr-alloc
libexpr: fixup ExprOpHasAttr() to take allocator reference
2 parents 34bca92 + 14b119c commit d5fa131

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
@@ -350,7 +350,7 @@ struct ExprOpHasAttr : Expr
350350
Expr * e;
351351
std::span<AttrName> attrPath;
352352

353-
ExprOpHasAttr(std::pmr::polymorphic_allocator<char> alloc, Expr * e, std::vector<AttrName> attrPath)
353+
ExprOpHasAttr(std::pmr::polymorphic_allocator<char> & alloc, Expr * e, std::vector<AttrName> attrPath)
354354
: e(e)
355355
, attrPath({alloc.allocate_object<AttrName>(attrPath.size()), attrPath.size()})
356356
{

0 commit comments

Comments
 (0)