about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/nixexpr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libexpr/nixexpr.cc')
-rw-r--r--third_party/nix/src/libexpr/nixexpr.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/nixexpr.cc b/third_party/nix/src/libexpr/nixexpr.cc
index d7b1a0fdd572..49b4a7ea419b 100644
--- a/third_party/nix/src/libexpr/nixexpr.cc
+++ b/third_party/nix/src/libexpr/nixexpr.cc
@@ -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