As suggested by @TheBlueMatt and @laanwj in #4701.
Add IsNull() to class CAutoFile and remove operator ! #5089
pull rdponticelli wants to merge 1 commits into bitcoin:master from Criptomonedas:cautofileisnull changing 3 files +7 −7-
rdponticelli commented at 3:51 AM on October 16, 2014: contributor
-
in src/serialize.h:None in 6d7580aa6f outdated
1121 | @@ -1122,8 +1122,7 @@ class CAutoFile 1122 | FILE& operator*() { return *file; } 1123 | FILE** operator&() { return &file; } 1124 | FILE* operator=(FILE* pnew) { return file = pnew; } 1125 | - bool operator!() { return (file == NULL); } 1126 | - 1127 | + bool IsNull() const { return (file == 0); }
sipa commented at 5:39 AM on October 16, 2014:Can you use NULL instead?
TheBlueMatt commented at 5:51 AM on October 16, 2014: memberutACK
laanwj commented at 6:39 AM on October 16, 2014: memberutACKEdit: taking away my ACK for now, this will work but it doesn't cover all uses of !CAutoFile()Add IsNull() to class CAutoFile and remove operator ! 8769d9e82crdponticelli force-pushed on Oct 16, 2014rdponticelli closed this on Oct 20, 2014MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me