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 committed by GPUCode
parent ca2d87e5e3
commit 4fd0cbebdb
2 changed files with 15 additions and 21 deletions

View file

@ -20,19 +20,13 @@ namespace Log {
*/
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;
};
/**