log/backend: Use in-class initializer for FileBackend
We can also avoid redundant constructions of the same string repeatedly.
This commit is contained in:
parent
399f3d4e32
commit
5c86147ef4
2 changed files with 7 additions and 5 deletions
|
@ -109,7 +109,7 @@ public:
|
|||
|
||||
private:
|
||||
FileUtil::IOFile file;
|
||||
std::size_t bytes_written;
|
||||
std::size_t bytes_written = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue