autofile: don't copy CAutoFile by value

This commit is contained in:
Cory Fields
2014-09-25 19:25:19 -04:00
parent 4b2b78b9f2
commit eee030f6bc
4 changed files with 8 additions and 8 deletions

View File

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