Fixed clang-tidy warnings

This commit is contained in:
gabime 2019-08-19 12:20:13 +03:00
parent 23807e12e8
commit c1a524a969
2 changed files with 4 additions and 9 deletions

View File

@ -32,7 +32,6 @@ namespace details {
SPDLOG_INLINE registry::registry() SPDLOG_INLINE registry::registry()
: formatter_(new pattern_formatter()) : formatter_(new pattern_formatter())
, level_(spdlog::level::info)
{ {
#ifndef SPDLOG_DISABLE_DEFAULT_LOGGER #ifndef SPDLOG_DISABLE_DEFAULT_LOGGER

View File

@ -31,20 +31,16 @@ enum class async_msg_type
// Movable only. should never be copied // Movable only. should never be copied
struct async_msg struct async_msg
{ {
async_msg_type msg_type; async_msg_type msg_type {async_msg_type::log};
level::level_enum level; level::level_enum level {level::info};
log_clock::time_point time; log_clock::time_point time;
size_t thread_id; size_t thread_id {0};
fmt::basic_memory_buffer<char, 176> raw; fmt::basic_memory_buffer<char, 176> raw;
source_loc source; source_loc source;
async_logger_ptr worker_ptr; async_logger_ptr worker_ptr;
async_msg() async_msg() = default;
: msg_type(async_msg_type::log)
, level(level::info)
, thread_id(0)
{}
~async_msg() = default; ~async_msg() = default;
// should only be moved in or out of the queue.. // should only be moved in or out of the queue..