aboutsummaryrefslogtreecommitdiff
path: root/src/flatfile.h
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2019-01-24 11:20:57 -0800
committerJim Posen <jim.posen@gmail.com>2019-02-22 17:38:45 -0800
commit04cca330944f859b4ed68cb8da8a79f5206fd630 (patch)
treea0c42f2d1b123a0c73e3bf3943cbdb18393e441d /src/flatfile.h
parent4c01e4e159db82ce4b2acce75f709cac996367d7 (diff)
downloadbitcoin-04cca330944f859b4ed68cb8da8a79f5206fd630.tar.xz
Style cleanup.
Diffstat (limited to 'src/flatfile.h')
-rw-r--r--src/flatfile.h14
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