summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-08-05 22:34:12 -0400
committerGitHub <noreply@github.com>2020-08-05 22:34:12 -0400
commitd888ac7d20e2300f9fdb595716bcfe158ea012ca (patch)
treeb4d42fbdee48251fe9f6ff7ce9d3cbe8f67f4f09 /src/common/logging/backend.h
parent61678c4e9fefb32624c5c2c261f4b152f9b133fb (diff)
parent8725b37a358cf27c144d7b606fa8f126d61ee52d (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.h14
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;
};
/**