use make_unique

This commit is contained in:
gabime
2018-09-01 21:30:05 +03:00
parent f4bbe8b2b3
commit ebce97947d
3 changed files with 51 additions and 39 deletions

View File

@@ -113,7 +113,7 @@ public:
{
std::lock_guard<std::mutex> lock(flusher_mutex_);
std::function<void()> clbk = std::bind(&registry::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)