diff options
| author | 2020-08-03 10:31:57 -0400 | |
|---|---|---|
| committer | 2020-08-03 10:37:48 -0400 | |
| commit | 8725b37a358cf27c144d7b606fa8f126d61ee52d (patch) | |
| tree | 3fd0a43978fd9044dea400ea7ebc3e9685b9a693 /src/common/logging/backend.h | |
| parent | ipc: Allow all trivially copyable objects to be passed directly into WriteBuf... (diff) | |
| download | yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar.gz yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar.xz yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.zip | |
logging/backend: Make use of designated initializers
Same behavior, less code.
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; | |||
| 21 | */ | 21 | */ |
| 22 | struct Entry { | 22 | struct Entry { |
| 23 | std::chrono::microseconds timestamp; | 23 | std::chrono::microseconds timestamp; |
| 24 | Class log_class; | 24 | Class log_class{}; |
| 25 | Level log_level; | 25 | Level log_level{}; |
| 26 | const char* filename; | 26 | const char* filename = nullptr; |
| 27 | unsigned int line_num; | 27 | unsigned int line_num = 0; |
| 28 | std::string function; | 28 | std::string function; |
| 29 | std::string message; | 29 | std::string message; |
| 30 | bool final_entry = false; | 30 | bool final_entry = false; |
| 31 | |||
| 32 | Entry() = default; | ||
| 33 | Entry(Entry&& o) = default; | ||
| 34 | |||
| 35 | Entry& operator=(Entry&& o) = default; | ||
| 36 | Entry& operator=(const Entry& o) = default; | ||
| 37 | }; | 31 | }; |
| 38 | 32 | ||
| 39 | /** | 33 | /** |