refactor(3p/nix/libexpr): Use std::string as qualified type
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*
This commit is contained in:
parent
b97307056d
commit
a162f4e825
26 changed files with 196 additions and 184 deletions
11
third_party/nix/src/libexpr/nixexpr.hh
vendored
11
third_party/nix/src/libexpr/nixexpr.hh
vendored
|
|
@ -3,6 +3,7 @@
|
|||
#include <map>
|
||||
|
||||
#include "symbol-table.hh"
|
||||
#include "types.hh" // TODO(tazjin): audit this include
|
||||
#include "value.hh"
|
||||
|
||||
namespace nix {
|
||||
|
|
@ -111,14 +112,14 @@ struct ExprString : Expr {
|
|||
|
||||
/* Temporary class used during parsing of indented strings. */
|
||||
struct ExprIndStr : Expr {
|
||||
string s;
|
||||
ExprIndStr(const string& s) : s(s){};
|
||||
std::string s;
|
||||
ExprIndStr(const std::string& s) : s(s){};
|
||||
};
|
||||
|
||||
struct ExprPath : Expr {
|
||||
string s;
|
||||
std::string s;
|
||||
Value v;
|
||||
ExprPath(const string& s) : s(s) { mkPathNoCopy(v, this->s.c_str()); };
|
||||
ExprPath(const std::string& s) : s(s) { mkPathNoCopy(v, this->s.c_str()); };
|
||||
COMMON_METHODS
|
||||
Value* maybeThunk(EvalState& state, Env& env);
|
||||
};
|
||||
|
|
@ -231,7 +232,7 @@ struct ExprLambda : Expr {
|
|||
pos);
|
||||
};
|
||||
void setName(Symbol& name);
|
||||
string showNamePos() const;
|
||||
std::string showNamePos() const;
|
||||
COMMON_METHODS
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue