Browse Source

optim: mark a few classes final

0.16
Cory Fields 7 years ago
parent
commit
9a1675ee5b
  1. 2
      src/httpserver.cpp
  2. 2
      src/txdb.h
  3. 2
      src/wallet/wallet.h
  4. 2
      src/zmq/zmqnotificationinterface.h

2
src/httpserver.cpp

@ -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):

2
src/txdb.h

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

2
src/wallet/wallet.h

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

2
src/zmq/zmqnotificationinterface.h

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