mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-01 00:10:44 +01:00
tidy: modernize-use-equals-default
This commit is contained in:
@@ -123,7 +123,7 @@ struct BlockInfo {
|
||||
class Chain
|
||||
{
|
||||
public:
|
||||
virtual ~Chain() {}
|
||||
virtual ~Chain() = default;
|
||||
|
||||
//! Get current chain height, not including genesis block (returns 0 if
|
||||
//! chain only contains genesis block, nullopt if chain does not contain
|
||||
@@ -309,7 +309,7 @@ public:
|
||||
class Notifications
|
||||
{
|
||||
public:
|
||||
virtual ~Notifications() {}
|
||||
virtual ~Notifications() = default;
|
||||
virtual void transactionAddedToMempool(const CTransactionRef& tx) {}
|
||||
virtual void transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason) {}
|
||||
virtual void blockConnected(ChainstateRole role, const BlockInfo& block) {}
|
||||
@@ -371,7 +371,7 @@ public:
|
||||
class ChainClient
|
||||
{
|
||||
public:
|
||||
virtual ~ChainClient() {}
|
||||
virtual ~ChainClient() = default;
|
||||
|
||||
//! Register rpcs.
|
||||
virtual void registerRpcs() = 0;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace interfaces {
|
||||
class Echo
|
||||
{
|
||||
public:
|
||||
virtual ~Echo() {}
|
||||
virtual ~Echo() = default;
|
||||
|
||||
//! Echo provided string.
|
||||
virtual std::string echo(const std::string& echo) = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace interfaces {
|
||||
class Handler
|
||||
{
|
||||
public:
|
||||
virtual ~Handler() {}
|
||||
virtual ~Handler() = default;
|
||||
|
||||
//! Disconnect the handler.
|
||||
virtual void disconnect() = 0;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace interfaces {
|
||||
class Mining
|
||||
{
|
||||
public:
|
||||
virtual ~Mining() {}
|
||||
virtual ~Mining() = default;
|
||||
|
||||
//! If this chain is exclusively used for testing
|
||||
virtual bool isTestChain() = 0;
|
||||
|
||||
@@ -59,7 +59,7 @@ struct BlockAndHeaderTipInfo
|
||||
class ExternalSigner
|
||||
{
|
||||
public:
|
||||
virtual ~ExternalSigner() {};
|
||||
virtual ~ExternalSigner() = default;
|
||||
|
||||
//! Get signer display name
|
||||
virtual std::string getName() = 0;
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
class Node
|
||||
{
|
||||
public:
|
||||
virtual ~Node() {}
|
||||
virtual ~Node() = default;
|
||||
|
||||
//! Init logging.
|
||||
virtual void initLogging() = 0;
|
||||
|
||||
@@ -65,7 +65,7 @@ using WalletValueMap = std::map<std::string, std::string>;
|
||||
class Wallet
|
||||
{
|
||||
public:
|
||||
virtual ~Wallet() {}
|
||||
virtual ~Wallet() = default;
|
||||
|
||||
//! Encrypt wallet.
|
||||
virtual bool encryptWallet(const SecureString& wallet_passphrase) = 0;
|
||||
|
||||
Reference in New Issue
Block a user