mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 23:49:03 +08:00
Fixed clang-tidy warnings
This commit is contained in:
parent
23807e12e8
commit
c1a524a969
@ -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
|
|||||||
// 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..
|
||||||
|
Loading…
Reference in New Issue
Block a user