Fix tidy warning

This commit is contained in:
gabime 2020-03-04 16:21:07 +02:00
parent 1f8b04cbd1
commit 8284865f9a

View File

@ -184,7 +184,7 @@ SPDLOG_INLINE void registry::flush_on(level::level_enum log_level)
SPDLOG_INLINE void registry::flush_every(std::chrono::seconds interval)
{
std::lock_guard<std::mutex> lock(flusher_mutex_);
std::function<void()> clbk = std::bind(&registry::flush_all, this);
auto clbk = [this](){this->flush_all();};
periodic_flusher_ = details::make_unique<periodic_worker>(clbk, interval);
}