diff options
author | Jim Posen <jim.posen@gmail.com> | 2019-01-24 11:20:57 -0800 |
---|---|---|
committer | Jim Posen <jim.posen@gmail.com> | 2019-02-22 17:38:45 -0800 |
commit | 04cca330944f859b4ed68cb8da8a79f5206fd630 (patch) | |
tree | a0c42f2d1b123a0c73e3bf3943cbdb18393e441d /src/flatfile.h | |
parent | 4c01e4e159db82ce4b2acce75f709cac996367d7 (diff) |
Style cleanup.
Diffstat (limited to 'src/flatfile.h')
-rw-r--r-- | src/flatfile.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/flatfile.h b/src/flatfile.h index 6051970490..374ceff411 100644 --- a/src/flatfile.h +++ b/src/flatfile.h @@ -24,14 +24,12 @@ struct FlatFilePos READWRITE(VARINT(nPos)); } - FlatFilePos() { - SetNull(); - } + FlatFilePos() : nFile(-1), nPos(0) {} - FlatFilePos(int nFileIn, unsigned int nPosIn) { - nFile = nFileIn; - nPos = nPosIn; - } + FlatFilePos(int nFileIn, unsigned int nPosIn) : + nFile(nFileIn), + nPos(nPosIn) + {} friend bool operator==(const FlatFilePos &a, const FlatFilePos &b) { return (a.nFile == b.nFile && a.nPos == b.nPos); @@ -72,7 +70,7 @@ public: fs::path FileName(const FlatFilePos& pos) const; /** Open a handle to the file at the given position. */ - FILE* Open(const FlatFilePos& pos, bool fReadOnly = false); + FILE* Open(const FlatFilePos& pos, bool read_only = false); /** * Allocate additional space in a file after the given starting position. The amount allocated |