Init last_log_secs_ with {}

This commit is contained in:
gabime 2024-01-13 10:49:25 +02:00
parent e2e8099ad9
commit 947b42b86f

View File

@ -837,7 +837,7 @@ pattern_formatter::pattern_formatter(std::string pattern,
pattern_time_type_{time_type}, pattern_time_type_{time_type},
need_localtime_{false}, need_localtime_{false},
cached_tm_{}, cached_tm_{},
last_log_secs_{0}, last_log_secs_{},
custom_handlers_{std::move(custom_user_flags)} { custom_handlers_{std::move(custom_user_flags)} {
compile_pattern_(pattern_); compile_pattern_(pattern_);
} }
@ -849,7 +849,7 @@ pattern_formatter::pattern_formatter(pattern_time_type time_type, std::string eo
pattern_time_type_{time_type}, pattern_time_type_{time_type},
need_localtime_{true}, need_localtime_{true},
cached_tm_{}, cached_tm_{},
last_log_secs_{0} { last_log_secs_{} {
formatters_.push_back(std::make_unique<details::full_formatter>(details::padding_info{})); formatters_.push_back(std::make_unique<details::full_formatter>(details::padding_info{}));
} }