tidy: modernize-use-equals-default

This commit is contained in:
MarcoFalke
2024-07-08 11:11:58 +02:00
parent bd5d1688b4
commit 3333bae9b2
53 changed files with 72 additions and 76 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -22,7 +22,7 @@ namespace interfaces {
class Handler
{
public:
virtual ~Handler() {}
virtual ~Handler() = default;
//! Disconnect the handler.
virtual void disconnect() = 0;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;