diff options
author | Et7f3 <cadeaudeelie@gmail.com> | 2023-02-11 00:34:31 +0100 |
---|---|---|
committer | Et7f3 <cadeaudeelie@gmail.com> | 2023-02-12 05:49:45 +0100 |
commit | fa89d317b7c7590a59db44bb369fcfe6baee4296 (patch) | |
tree | a09394b6c944cc273f8db7630cd2826fb4e31280 /src/libexpr/nixexpr.hh | |
parent | 3d16f2a2810a755b066738f3163abe7bd0d636ff (diff) |
ExprString: Avoid copy of string
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r-- | src/libexpr/nixexpr.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index ffe67f97d..20a586f60 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -186,7 +186,7 @@ struct ExprString : Expr { std::string s; Value v; - ExprString(std::string s) : s(std::move(s)) { v.mkString(this->s.data()); }; + ExprString(std::string &&s) : s(std::move(s)) { v.mkString(this->s.data()); }; Value * maybeThunk(EvalState & state, Env & env) override; COMMON_METHODS }; |