Commit 0b516733 authored by gabime's avatar gabime

user buffer.clear() insread of resize(0)

parent e15deead
...@@ -474,7 +474,7 @@ class full_formatter final : public flag_formatter ...@@ -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('-');
......
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