mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 10:42:13 +02:00
Declare single-argument (non-converting) constructors "explicit"
In order to avoid unintended implicit conversions.
This commit is contained in:
@@ -247,7 +247,7 @@ public:
|
||||
SetNull();
|
||||
}
|
||||
|
||||
CBlockIndex(const CBlockHeader& block)
|
||||
explicit CBlockIndex(const CBlockHeader& block)
|
||||
{
|
||||
SetNull();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user