mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
use make_unique
This commit is contained in:
@@ -113,7 +113,7 @@ public:
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(flusher_mutex_);
|
||||
std::function<void()> clbk = std::bind(®istry::flush_all, this);
|
||||
periodic_flusher_.reset(new periodic_worker(clbk, interval));
|
||||
periodic_flusher_ = make_unique<periodic_worker>(clbk, interval);
|
||||
}
|
||||
|
||||
void set_error_handler(log_err_handler handler)
|
||||
|
Reference in New Issue
Block a user