From a19d93e1a24a1e19357761e7c6b6f80f1363e4b0 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 22 Aug 2019 19:45:32 +0300 Subject: [PATCH] brace initialize some ctors --- include/spdlog/details/thread_pool.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/spdlog/details/thread_pool.h b/include/spdlog/details/thread_pool.h index fe5e3850..aa8bd42f 100644 --- a/include/spdlog/details/thread_pool.h +++ b/include/spdlog/details/thread_pool.h @@ -64,19 +64,19 @@ struct async_msg : log_msg_buffer // construct from log_msg with given type async_msg(async_logger_ptr &&worker, async_msg_type the_type, details::log_msg &m) - : log_msg_buffer(m) - , msg_type(the_type) - , worker_ptr(std::move(worker)) + : log_msg_buffer{m} + , msg_type{the_type} + , worker_ptr{std::move(worker)} {} async_msg(async_logger_ptr &&worker, async_msg_type the_type) - : log_msg_buffer() - , msg_type(the_type) - , worker_ptr(std::move(worker)) + : log_msg_buffer{} + , msg_type{the_type} + , worker_ptr{std::move(worker)} {} explicit async_msg(async_msg_type the_type) - : async_msg(nullptr, the_type) + : async_msg{nullptr, the_type} {} };