mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-27 07:59:03 +08:00
Init last_log_secs_ with {}
This commit is contained in:
parent
e2e8099ad9
commit
947b42b86f
@ -837,7 +837,7 @@ pattern_formatter::pattern_formatter(std::string pattern,
|
||||
pattern_time_type_{time_type},
|
||||
need_localtime_{false},
|
||||
cached_tm_{},
|
||||
last_log_secs_{0},
|
||||
last_log_secs_{},
|
||||
custom_handlers_{std::move(custom_user_flags)} {
|
||||
compile_pattern_(pattern_);
|
||||
}
|
||||
@ -849,7 +849,7 @@ pattern_formatter::pattern_formatter(pattern_time_type time_type, std::string eo
|
||||
pattern_time_type_{time_type},
|
||||
need_localtime_{true},
|
||||
cached_tm_{},
|
||||
last_log_secs_{0} {
|
||||
last_log_secs_{} {
|
||||
formatters_.push_back(std::make_unique<details::full_formatter>(details::padding_info{}));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user