Commit c1a524a9 authored by gabime's avatar gabime

Fixed clang-tidy warnings

parent 23807e12
...@@ -32,7 +32,6 @@ namespace details { ...@@ -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
......
...@@ -31,20 +31,16 @@ enum class async_msg_type ...@@ -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..
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment