refactor: use C++11 default initializers

This commit is contained in:
fanquake
2022-05-11 16:02:15 +01:00
parent d5d40d59f8
commit 7aa40f5563
39 changed files with 57 additions and 88 deletions

View File

@@ -930,10 +930,10 @@ class submitblock_StateCatcher final : public CValidationInterface
{
public:
uint256 hash;
bool found;
bool found{false};
BlockValidationState state;
explicit submitblock_StateCatcher(const uint256 &hashIn) : hash(hashIn), found(false), state() {}
explicit submitblock_StateCatcher(const uint256 &hashIn) : hash(hashIn), state() {}
protected:
void BlockChecked(const CBlock& block, const BlockValidationState& stateIn) override {