Merge pull request #2396 from polesapart/v1.x

Remove redundant std::move at return
This commit is contained in:
Gabi Melman 2022-06-02 22:53:54 +03:00 committed by GitHub
commit 298a200f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)