aboutsummaryrefslogtreecommitdiff
path: root/src/flatfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/flatfile.h')
-rw-r--r--src/flatfile.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/flatfile.h b/src/flatfile.h
index 04f6373a24..26b466db71 100644
--- a/src/flatfile.h
+++ b/src/flatfile.h
@@ -8,17 +8,17 @@
#include <string>
-#include <fs.h>
#include <serialize.h>
+#include <util/fs.h>
struct FlatFilePos
{
- int nFile;
- unsigned int nPos;
+ int nFile{-1};
+ unsigned int nPos{0};
SERIALIZE_METHODS(FlatFilePos, obj) { READWRITE(VARINT_MODE(obj.nFile, VarIntMode::NONNEGATIVE_SIGNED), VARINT(obj.nPos)); }
- FlatFilePos() : nFile(-1), nPos(0) {}
+ FlatFilePos() {}
FlatFilePos(int nFileIn, unsigned int nPosIn) :
nFile(nFileIn),
@@ -33,7 +33,6 @@ struct FlatFilePos
return !(a == b);
}
- void SetNull() { nFile = -1; nPos = 0; }
bool IsNull() const { return (nFile == -1); }
std::string ToString() const;