Fix a std::move() warning with clang

This commit is contained in:
louiz’
2020-05-02 21:43:48 +02:00
parent 12feb1509e
commit c91fac82da
+1 -1
View File
@@ -11,7 +11,7 @@ namespace utils
{ {
if (!Config::get("fixed_irc_server", "").empty()) if (!Config::get("fixed_irc_server", "").empty())
return {}; return {};
return str; return std::move(str);
} }
inline std::string empty_if_fixed_server(const std::string& str) inline std::string empty_if_fixed_server(const std::string& str)