mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
Declare single-argument (non-converting) constructors "explicit"
In order to avoid unintended implicit conversions.
This commit is contained in:
@@ -2783,7 +2783,7 @@ class CompareInvMempoolOrder
|
||||
{
|
||||
CTxMemPool *mp;
|
||||
public:
|
||||
CompareInvMempoolOrder(CTxMemPool *_mempool)
|
||||
explicit CompareInvMempoolOrder(CTxMemPool *_mempool)
|
||||
{
|
||||
mp = _mempool;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user