diff options
author | bunnei <bunneidev@gmail.com> | 2020-08-05 22:34:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 22:34:12 -0400 |
commit | d888ac7d20e2300f9fdb595716bcfe158ea012ca (patch) | |
tree | b4d42fbdee48251fe9f6ff7ce9d3cbe8f67f4f09 /src/common/logging/backend.h | |
parent | 61678c4e9fefb32624c5c2c261f4b152f9b133fb (diff) | |
parent | 8725b37a358cf27c144d7b606fa8f126d61ee52d (diff) |
Merge pull request #4477 from lioncash/log-desig
logging/backend: Make use of designated initializers
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r-- | src/common/logging/backend.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index fc338c70d..e5d702568 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -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; }; /** |