diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-22T00·54+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-22T00·59+0100 |
commit | 42205f27fc820ddc64616d55c04e2ffde1948043 (patch) | |
tree | 06cbc1332eec9fb083f7a31bf0dcd092d1e23139 /third_party/nix/src/libexpr/attr-path.cc | |
parent | ee4637e3a22a1efc480bb66ea025afd107d1b158 (diff) |
refactor(3p/nix/libexpr): Use absl::btree_map::iterator type r/801
Instead of using a custom Args* iterator, use the one belonging to the map type directly.
Diffstat (limited to 'third_party/nix/src/libexpr/attr-path.cc')
-rw-r--r-- | third_party/nix/src/libexpr/attr-path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/attr-path.cc b/third_party/nix/src/libexpr/attr-path.cc index 3a467504aa63..1815b5e510d3 100644 --- a/third_party/nix/src/libexpr/attr-path.cc +++ b/third_party/nix/src/libexpr/attr-path.cc @@ -81,7 +81,7 @@ Value* findAlongAttrPath(EvalState& state, const std::string& attrPath, format("attribute '%1%' in selection path '%2%' not found") % attr % attrPath); } - v = &*a->value; + v = &*(a->second).value; } else if (apType == apIndex) { |