diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-21T04·43+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-21T04·43+0100 |
commit | a162f4e8258ce1d401bc1cdb018e1212db80772d (patch) | |
tree | cf78df573c740ec054aea483101be29e5fa06e8c /third_party/nix/src/libexpr/attr-path.cc | |
parent | b97307056da53f094ab46e12f87d6a3f0a2be79f (diff) |
refactor(3p/nix/libexpr): Use std::string as qualified type r/797
Replaces most uses of `string` with `std::string`. This came up because I removed the "types.hh" import from "symbol-table.hh", which percolated through a bunch of files where `string` was suddenly no longer defined ... *sigh*
Diffstat (limited to 'third_party/nix/src/libexpr/attr-path.cc')
-rw-r--r-- | third_party/nix/src/libexpr/attr-path.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/libexpr/attr-path.cc b/third_party/nix/src/libexpr/attr-path.cc index b9b9106be856..3a467504aa63 100644 --- a/third_party/nix/src/libexpr/attr-path.cc +++ b/third_party/nix/src/libexpr/attr-path.cc @@ -5,9 +5,9 @@ namespace nix { -static Strings parseAttrPath(const string& s) { +static Strings parseAttrPath(const std::string& s) { Strings res; - string cur; + std::string cur; string::const_iterator i = s.begin(); while (i != s.end()) { if (*i == '.') { @@ -36,7 +36,7 @@ static Strings parseAttrPath(const string& s) { return res; } -Value* findAlongAttrPath(EvalState& state, const string& attrPath, +Value* findAlongAttrPath(EvalState& state, const std::string& attrPath, Bindings& autoArgs, Value& vIn) { Strings tokens = parseAttrPath(attrPath); |