optim: mark a few classes final

pull/10809/head
Cory Fields 7 years ago
parent 0b019357ff
commit 9a1675ee5b

@ -40,7 +40,7 @@
static const size_t MAX_HEADERS_SIZE = 8192; static const size_t MAX_HEADERS_SIZE = 8192;
/** HTTP request work item */ /** HTTP request work item */
class HTTPWorkItem : public HTTPClosure class HTTPWorkItem final : public HTTPClosure
{ {
public: public:
HTTPWorkItem(std::unique_ptr<HTTPRequest> _req, const std::string &_path, const HTTPRequestHandler& _func): HTTPWorkItem(std::unique_ptr<HTTPRequest> _req, const std::string &_path, const HTTPRequestHandler& _func):

@ -64,7 +64,7 @@ struct CDiskTxPos : public CDiskBlockPos
}; };
/** CCoinsView backed by the coin database (chainstate/) */ /** CCoinsView backed by the coin database (chainstate/) */
class CCoinsViewDB : public CCoinsView class CCoinsViewDB final : public CCoinsView
{ {
protected: protected:
CDBWrapper db; CDBWrapper db;

@ -648,7 +648,7 @@ private:
* A CWallet is an extension of a keystore, which also maintains a set of transactions and balances, * A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,
* and provides the ability to create new transactions. * and provides the ability to create new transactions.
*/ */
class CWallet : public CCryptoKeyStore, public CValidationInterface class CWallet final : public CCryptoKeyStore, public CValidationInterface
{ {
private: private:
static std::atomic<bool> fFlushScheduled; static std::atomic<bool> fFlushScheduled;

@ -13,7 +13,7 @@
class CBlockIndex; class CBlockIndex;
class CZMQAbstractNotifier; class CZMQAbstractNotifier;
class CZMQNotificationInterface : public CValidationInterface class CZMQNotificationInterface final : public CValidationInterface
{ {
public: public:
virtual ~CZMQNotificationInterface(); virtual ~CZMQNotificationInterface();

Loading…
Cancel
Save