CAutoFile: Explicit Get() and remove unused methods

Also add documentation to some methods.
This commit is contained in:
Wladimir J. van der Laan
2014-10-20 12:45:50 +02:00
parent fef24cab1a
commit a873823864
5 changed files with 25 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ bool read_block(const std::string& filename, CBlock& block)
fseek(fp, 8, SEEK_SET); // skip msgheader/size
CAutoFile filein(fp, SER_DISK, CLIENT_VERSION);
if (!filein) return false;
if (filein.IsNull()) return false;
filein >> block;