aboutsummaryrefslogtreecommitdiff
path: root/src/flatfile.h
diff options
context:
space:
mode:
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