refactor: Improve use of explicit keyword

This commit is contained in:
Fabian Jahr
2020-11-29 19:33:22 +01:00
parent c502a6dbfb
commit 1e62350ca2
19 changed files with 31 additions and 22 deletions

View File

@@ -156,7 +156,7 @@ protected:
uint32_t m_expr_index;
public:
PubkeyProvider(uint32_t exp_index) : m_expr_index(exp_index) {}
explicit PubkeyProvider(uint32_t exp_index) : m_expr_index(exp_index) {}
virtual ~PubkeyProvider() = default;

View File

@@ -28,7 +28,7 @@ protected:
public:
BaseHash() : m_hash() {}
BaseHash(const HashType& in) : m_hash(in) {}
explicit BaseHash(const HashType& in) : m_hash(in) {}
unsigned char* begin()
{