mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
clang-tidy: Fix modernize-use-default-member-init in CScriptCheck
This commit is contained in:
parent
b4bed5c1f9
commit
a87fb6bee5
@ -314,12 +314,12 @@ private:
|
|||||||
unsigned int nIn;
|
unsigned int nIn;
|
||||||
unsigned int nFlags;
|
unsigned int nFlags;
|
||||||
bool cacheStore;
|
bool cacheStore;
|
||||||
ScriptError error;
|
ScriptError error{SCRIPT_ERR_UNKNOWN_ERROR};
|
||||||
PrecomputedTransactionData *txdata;
|
PrecomputedTransactionData *txdata;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CScriptCheck(const CTxOut& outIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* txdataIn) :
|
CScriptCheck(const CTxOut& outIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* txdataIn) :
|
||||||
m_tx_out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { }
|
m_tx_out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), txdata(txdataIn) { }
|
||||||
|
|
||||||
CScriptCheck(const CScriptCheck&) = delete;
|
CScriptCheck(const CScriptCheck&) = delete;
|
||||||
CScriptCheck& operator=(const CScriptCheck&) = delete;
|
CScriptCheck& operator=(const CScriptCheck&) = delete;
|
||||||
|
Loading…
Reference in New Issue
Block a user