This commit is contained in:
gabime 2014-12-02 02:27:11 +02:00
parent 4462a3c4e3
commit b0a687c148
3 changed files with 553 additions and 281 deletions

File diff suppressed because it is too large Load Diff

View File

@ -61,7 +61,7 @@ struct log_msg
raw(std::move(other.raw)), raw(std::move(other.raw)),
formatted(std::move(other.formatted)) formatted(std::move(other.formatted))
{ {
other.clear(); other.clear();
} }
log_msg& operator=(log_msg&& other) log_msg& operator=(log_msg&& other)
@ -75,7 +75,7 @@ struct log_msg
tm_time = other.tm_time; tm_time = other.tm_time;
raw = std::move(other.raw); raw = std::move(other.raw);
formatted = std::move(other.formatted); formatted = std::move(other.formatted);
other.clear(); other.clear();
return *this; return *this;
} }
@ -83,7 +83,7 @@ struct log_msg
void clear() void clear()
{ {
level = level::OFF; level = level::OFF;
raw.clear(); raw.clear();
formatted.clear(); formatted.clear();
} }