aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-11 16:36:36 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-11 16:56:29 +0100
commite02481ded216ffb5b06b413e3695d4e11e62e02f (patch)
tree587c913d7c96a71939b847c3a22dd3a30b733e94 /src/libexpr/eval.hh
parente063c71a79d43e3864468a8481c0dfd12586af58 (diff)
parseExprFromString(): Use std::string_view
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 34a212aa4..f3e8a34bd 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -144,8 +144,8 @@ public:
Expr * parseExprFromFile(const Path & path, StaticEnv & staticEnv);
/* Parse a Nix expression from the specified string. */
- Expr * parseExprFromString(const string & s, const Path & basePath, StaticEnv & staticEnv);
- Expr * parseExprFromString(const string & s, const Path & basePath);
+ Expr * parseExprFromString(std::string_view s, const Path & basePath, StaticEnv & staticEnv);
+ Expr * parseExprFromString(std::string_view s, const Path & basePath);
Expr * parseStdin();