Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Pereira Nunes <alexandre.nunes@gmail.com>2022-06-02 19:18:00 +0300
committerAlexandre Pereira Nunes <alexandre.nunes@gmail.com>2022-06-02 19:18:00 +0300
commitbeefee7929851353464d550b425e18c17a572265 (patch)
treee525275eace394d1b733fa17149f37f4517c916d /include/spdlog
parent9e8e52c0488706986c76eeb4225286ac02fb1ee9 (diff)
Remove redundant std::move at return (triggers -Wredundant-move in Gcc, at least)
Diffstat (limited to 'include/spdlog')
-rw-r--r--include/spdlog/pattern_formatter-inl.h2
1 files changed, 1 insertions, 1 deletions
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<formatter> pattern_formatter::clone() const
}
auto cloned = details::make_unique<pattern_formatter>(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)