diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-06-21 21:10:00 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-16 10:24:18 +0200 |
commit | 36d326e8b0866df4e70f81c2aa0a2e19d544399c (patch) | |
tree | be4837f43af4a7fb2c48753849bb3e7a9b776387 /src/validation.h | |
parent | d451d0bcf15d8025c3e963df033f918d646aff6a (diff) |
Use nullptr instead of zero (0) as the null pointer constant
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index edb8eab894..d0f6cdc135 100644 --- a/src/validation.h +++ b/src/validation.h @@ -365,7 +365,7 @@ private: PrecomputedTransactionData *txdata; public: - CScriptCheck(): amount(0), ptxTo(0), nIn(0), nFlags(0), cacheStore(false), error(SCRIPT_ERR_UNKNOWN_ERROR) {} + CScriptCheck(): amount(0), ptxTo(nullptr), nIn(0), nFlags(0), cacheStore(false), error(SCRIPT_ERR_UNKNOWN_ERROR) {} CScriptCheck(const CScript& scriptPubKeyIn, const CAmount amountIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* txdataIn) : scriptPubKey(scriptPubKeyIn), amount(amountIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { } |