mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 14:42:13 +08:00
user buffer.clear() insread of resize(0)
This commit is contained in:
parent
e15deead32
commit
0b516733db
@ -474,7 +474,7 @@ class full_formatter final : public flag_formatter
|
|||||||
|
|
||||||
if (cache_timestamp_ != secs || cached_datetime_.size() == 0)
|
if (cache_timestamp_ != secs || cached_datetime_.size() == 0)
|
||||||
{
|
{
|
||||||
cached_datetime_.resize(0);
|
cached_datetime_.clear();
|
||||||
cached_datetime_.push_back('[');
|
cached_datetime_.push_back('[');
|
||||||
fmt_helper::append_int(tm_time.tm_year + 1900, cached_datetime_);
|
fmt_helper::append_int(tm_time.tm_year + 1900, cached_datetime_);
|
||||||
cached_datetime_.push_back('-');
|
cached_datetime_.push_back('-');
|
||||||
|
Loading…
Reference in New Issue
Block a user