Skip to content

Commit 9a1675e

Browse files
committed
optim: mark a few classes final
1 parent 0b01935 commit 9a1675e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/httpserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
static const size_t MAX_HEADERS_SIZE = 8192;
4141

4242
/** HTTP request work item */
43-
class HTTPWorkItem : public HTTPClosure
43+
class HTTPWorkItem final : public HTTPClosure
4444
{
4545
public:
4646
HTTPWorkItem(std::unique_ptr<HTTPRequest> _req, const std::string &_path, const HTTPRequestHandler& _func):

src/txdb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct CDiskTxPos : public CDiskBlockPos
6464
};
6565

6666
/** CCoinsView backed by the coin database (chainstate/) */
67-
class CCoinsViewDB : public CCoinsView
67+
class CCoinsViewDB final : public CCoinsView
6868
{
6969
protected:
7070
CDBWrapper db;

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class CAccountingEntry
648648
* A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,
649649
* and provides the ability to create new transactions.
650650
*/
651-
class CWallet : public CCryptoKeyStore, public CValidationInterface
651+
class CWallet final : public CCryptoKeyStore, public CValidationInterface
652652
{
653653
private:
654654
static std::atomic<bool> fFlushScheduled;

src/zmq/zmqnotificationinterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class CBlockIndex;
1414
class CZMQAbstractNotifier;
1515

16-
class CZMQNotificationInterface : public CValidationInterface
16+
class CZMQNotificationInterface final : public CValidationInterface
1717
{
1818
public:
1919
virtual ~CZMQNotificationInterface();

0 commit comments

Comments
 (0)