From beefee7929851353464d550b425e18c17a572265 Mon Sep 17 00:00:00 2001 From: Alexandre Pereira Nunes Date: Thu, 2 Jun 2022 13:18:00 -0300 Subject: [PATCH] Remove redundant std::move at return (triggers -Wredundant-move in Gcc, at least) --- include/spdlog/pattern_formatter-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/pattern_formatter-inl.h b/include/spdlog/pattern_formatter-inl.h index b9a57804..2559454b 100644 --- a/include/spdlog/pattern_formatter-inl.h +++ b/include/spdlog/pattern_formatter-inl.h @@ -1053,7 +1053,7 @@ SPDLOG_INLINE std::unique_ptr pattern_formatter::clone() const } auto cloned = details::make_unique(pattern_, pattern_time_type_, eol_, std::move(cloned_custom_formatters)); cloned->need_localtime(need_localtime_); - return std::move(cloned); + return cloned; } SPDLOG_INLINE void pattern_formatter::format(const details::log_msg &msg, memory_buf_t &dest)