Mark single-argument constructors "explicit"

This commit is contained in:
practicalswift
2018-07-26 17:15:32 +02:00
parent 415f2bff69
commit 1ac3c983bf
8 changed files with 9 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ BOOST_FIXTURE_TEST_SUITE(validation_block_tests, RegtestingSetup)
struct TestSubscriber : public CValidationInterface {
uint256 m_expected_tip;
TestSubscriber(uint256 tip) : m_expected_tip(tip) {}
explicit TestSubscriber(uint256 tip) : m_expected_tip(tip) {}
void UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockIndex* pindexFork, bool fInitialDownload) override
{