Avoid unnecessary string copy

This commit is contained in:
Eelco Dolstra 2022-06-02 16:48:53 +02:00
parent abb80cfa4c
commit 28e08822a3
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

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