From 1dc58110fe0eb13481c264bb874e3b18daffb50a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Jun 2022 16:48:53 +0200 Subject: [PATCH] Avoid unnecessary string copy --- src/libutil/util.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/util.hh b/src/libutil/util.hh index d0d2bc02f..16e59ad33 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -718,7 +718,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); } inline std::string operator + (std::string_view s1, const char * s2)