From 7af3f014afe07c1b977e94411e415c4ac1df8741 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 27 Sep 2018 00:59:28 +0300 Subject: [PATCH] Fixed clang-tidy warning --- include/spdlog/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 343acb80..7f22e24c 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -129,8 +129,8 @@ enum class pattern_time_type class spdlog_ex : public std::exception { public: - explicit spdlog_ex(const std::string &msg) - : msg_(msg) + explicit spdlog_ex(std::string msg) + : msg_(std::move(msg)) { }