aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/parser/state.hh
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-07-02 17:29:19 -0600
committerQyriad <qyriad@qyriad.me>2024-07-04 15:55:38 -0600
commit4f0c27abe159c69db15f968607bc26de5ba1034f (patch)
tree0d24ec1149fbf9e7d3453ffeab936d1c912ed608 /src/libexpr/parser/state.hh
parente040b762a48f022b1ea4080020083f7367cf3ee5 (diff)
give ExprInheritFrom a handle to what its standing in for
Change-Id: I12088e0b618407e5432523bbc97be63c8d6fce62
Diffstat (limited to 'src/libexpr/parser/state.hh')
-rw-r--r--src/libexpr/parser/state.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser/state.hh b/src/libexpr/parser/state.hh
index f5a0428d7..29889152e 100644
--- a/src/libexpr/parser/state.hh
+++ b/src/libexpr/parser/state.hh
@@ -103,7 +103,7 @@ inline void State::addAttr(ExprAttrs * attrs, AttrPath && attrPath, std::unique_
auto * jAttrs = dynamic_cast<ExprAttrs *>(j->second.e.get());
if (jAttrs && ae) {
if (ae->inheritFromExprs && !jAttrs->inheritFromExprs)
- jAttrs->inheritFromExprs = std::make_unique<std::vector<std::unique_ptr<Expr>>>();
+ jAttrs->inheritFromExprs = std::make_unique<std::vector<ref<Expr>>>();
for (auto & ad : ae->attrs) {
auto j2 = jAttrs->attrs.find(ad.first);
if (j2 != jAttrs->attrs.end()) // Attr already defined in iAttrs, error.