diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-20 12:57:45 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-20 12:57:49 -0400 |
commit | 6125590a7b2bbad7d5efdfbab69ba86601e0769b (patch) | |
tree | c420bcf8709cf5af735988fddf25bba63ddbd2eb /src/common/logging/backend.h | |
parent | aaaca1cd6d1c4bb27e4fe3464293dcfffd8d886b (diff) |
log/backend: Use in-class initializer for FileBackend
We can also avoid redundant constructions of the same string repeatedly.
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r-- | src/common/logging/backend.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index 84a544ea44..9dd2589c3c 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -94,8 +94,8 @@ public: void Write(const Entry& entry) override; private: - Common::FS::IOFile file; - std::size_t bytes_written; + FS::IOFile file; + std::size_t bytes_written = 0; }; /** |