logging/backend: Make use of designated initializers

Same behavior, less code.
This commit is contained in:
Lioncash
2020-08-03 10:31:57 -04:00
parent 9b75481755
commit 8725b37a35
2 changed files with 15 additions and 21 deletions

View File

@ -21,19 +21,13 @@ class Filter;
*/
struct Entry {
std::chrono::microseconds timestamp;
Class log_class;
Level log_level;
const char* filename;
unsigned int line_num;
Class log_class{};
Level log_level{};
const char* filename = nullptr;
unsigned int line_num = 0;
std::string function;
std::string message;
bool final_entry = false;
Entry() = default;
Entry(Entry&& o) = default;
Entry& operator=(Entry&& o) = default;
Entry& operator=(const Entry& o) = default;
};
/**