parseExprFromString(): Use std::string_view

This commit is contained in:
Eelco Dolstra
2020-03-11 16:36:36 +01:00
parent e063c71a79
commit e02481ded2
2 changed files with 5 additions and 5 deletions

View File

@@ -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();