From c91fac82da5d3cae0f363eb6b75017808837125b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sat, 2 May 2020 20:55:11 +0200 Subject: [PATCH] Fix a std::move() warning with clang --- src/utils/empty_if_fixed_server.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/empty_if_fixed_server.hpp b/src/utils/empty_if_fixed_server.hpp index 9ccf5fd..cbb9cea 100644 --- a/src/utils/empty_if_fixed_server.hpp +++ b/src/utils/empty_if_fixed_server.hpp @@ -11,7 +11,7 @@ namespace utils { if (!Config::get("fixed_irc_server", "").empty()) return {}; - return str; + return std::move(str); } inline std::string empty_if_fixed_server(const std::string& str) -- 2.45.2