diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-06-02 16:48:53 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-06-02 21:26:28 +0200 |
commit | 28e08822a360d396260cec42d92704a3663e6aa9 (patch) | |
tree | 2f104586b67c2a4920c25f84f6382e2ee04dc7ea /src/libutil/util.hh | |
parent | abb80cfa4ca961ee1718480e8252ff76bb2dbb2b (diff) |
Avoid unnecessary string copy
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 16fa6c54c..90418b04d 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -712,7 +712,7 @@ inline std::string operator + (const std::string & s1, std::string_view s2) inline std::string operator + (std::string && s, std::string_view s2) { s.append(s2); - return s; + return std::move(s); } } |