diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-10-22 10:46:24 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-10-22 10:47:14 +0200 |
| commit | f984c7d7adf40e8517437f7b8c3704a63e1ca034 (patch) | |
| tree | f26d6b80e8a8cb3e38388d9990f53215dc6cd4a1 /src/test/checkblock_tests.cpp | |
| parent | Merge pull request #5110 (diff) | |
| parent | CAutoFile: Explicit Get() and remove unused methods (diff) | |
| download | discoin-f984c7d7adf40e8517437f7b8c3704a63e1ca034.tar.xz discoin-f984c7d7adf40e8517437f7b8c3704a63e1ca034.zip | |
Merge pull request #5108
a873823 CAutoFile: Explicit Get() and remove unused methods (Wladimir J. van der Laan)
fef24ca Add IsNull() to class CAutoFile and remove operator ! (Ruben Dario Ponticeli)
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 67d40a45c..9151fdc0c 100644 --- a/src/test/checkblock_tests.cpp +++ b/src/test/checkblock_tests.cpp @@ -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; |