diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-09-25 19:25:19 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-09-25 19:25:19 -0400 |
commit | eee030f6bc62117b4d3c27aa78818964d95a7063 (patch) | |
tree | 53dcf29fdc8db825b84544fb692db2d16a362e9b /src/test/checkblock_tests.cpp | |
parent | 4b2b78b9f2bd339cc4505996258e00c186e91792 (diff) |
autofile: don't copy CAutoFile by value
Diffstat (limited to 'src/test/checkblock_tests.cpp')
-rw-r--r-- | src/test/checkblock_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/checkblock_tests.cpp b/src/test/checkblock_tests.cpp index fdea12846a..67d40a45c7 100644 --- a/src/test/checkblock_tests.cpp +++ b/src/test/checkblock_tests.cpp @@ -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; |