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
4
third_party/nix/src/libexpr/nixexpr.cc
vendored
4
third_party/nix/src/libexpr/nixexpr.cc
vendored
|
|
@ -14,7 +14,7 @@ std::ostream& operator<<(std::ostream& str, const Expr& e) {
|
|||
return str;
|
||||
}
|
||||
|
||||
static void showString(std::ostream& str, const string& s) {
|
||||
static void showString(std::ostream& str, const std::string& s) {
|
||||
str << '"';
|
||||
for (auto c : (string)s) {
|
||||
if (c == '"' || c == '\\' || c == '$') {
|
||||
|
|
@ -32,7 +32,7 @@ static void showString(std::ostream& str, const string& s) {
|
|||
str << '"';
|
||||
}
|
||||
|
||||
static void showId(std::ostream& str, const string& s) {
|
||||
static void showId(std::ostream& str, const std::string& s) {
|
||||
if (s.empty()) {
|
||||
str << "\"\"";
|
||||
} else if (s == "if") { // FIXME: handle other keywords
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue