Skip to content

Commit f5bb2cb

Browse files
author
gladcow
committed
more override
1 parent 95b7c38 commit f5bb2cb

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

src/dsnotificationinterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CDSNotificationInterface : public CValidationInterface
2121
void AcceptedBlockHeader(const CBlockIndex *pindexNew) override;
2222
void NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload) override;
2323
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
24-
void SyncTransaction(const CTransaction &tx, const CBlockIndex *pindex, int posInBlock);
24+
void SyncTransaction(const CTransaction &tx, const CBlockIndex *pindex, int posInBlock) override;
2525

2626
private:
2727
CConnman& connman;

src/qt/coincontroltreewidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CoinControlTreeWidget : public QTreeWidget
1616
explicit CoinControlTreeWidget(QWidget *parent = 0);
1717

1818
protected:
19-
virtual void keyPressEvent(QKeyEvent *event);
19+
virtual void keyPressEvent(QKeyEvent *event) override;
2020
};
2121

2222
#endif // BITCOIN_QT_COINCONTROLTREEWIDGET_H

src/qt/receivecoinsdialog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public Q_SLOTS:
5151
void accept();
5252

5353
protected:
54-
virtual void keyPressEvent(QKeyEvent *event);
54+
virtual void keyPressEvent(QKeyEvent *event) override;
5555

5656
private:
5757
Ui::ReceiveCoinsDialog *ui;
@@ -62,7 +62,7 @@ public Q_SLOTS:
6262

6363
QModelIndex selectedRow();
6464
void copyColumnToClipboard(int column);
65-
virtual void resizeEvent(QResizeEvent *event);
65+
virtual void resizeEvent(QResizeEvent *event) override;
6666

6767
private Q_SLOTS:
6868
void on_receiveButton_clicked();

src/qt/receiverequestdialog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public Q_SLOTS:
3838
void copyImage();
3939

4040
protected:
41-
virtual void mousePressEvent(QMouseEvent *event);
42-
virtual void contextMenuEvent(QContextMenuEvent *event);
41+
virtual void mousePressEvent(QMouseEvent *event) override;
42+
virtual void contextMenuEvent(QContextMenuEvent *event) override;
4343

4444
private:
4545
QMenu *contextMenu;

src/qt/transactionview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class TransactionView : public QWidget
8181

8282
GUIUtil::TableViewLastColumnResizingFixer *columnResizingFixer;
8383

84-
virtual void resizeEvent(QResizeEvent* event);
84+
virtual void resizeEvent(QResizeEvent* event) override;
8585

8686
bool eventFilter(QObject *obj, QEvent *event);
8787

src/txdb.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class CCoinsViewDB : public CCoinsView
7474
public:
7575
CCoinsViewDB(size_t nCacheSize, bool fMemory = false, bool fWipe = false);
7676

77-
<<<<<<< HEAD
77+
7878
bool GetCoin(const COutPoint &outpoint, Coin &coin) const override;
7979
bool HaveCoin(const COutPoint &outpoint) const override;
8080
uint256 GetBestBlock() const override;
@@ -92,12 +92,12 @@ class CCoinsViewDBCursor: public CCoinsViewCursor
9292
public:
9393
~CCoinsViewDBCursor() {}
9494

95-
bool GetKey(COutPoint &key) const;
96-
bool GetValue(Coin &coin) const;
97-
unsigned int GetValueSize() const;
95+
bool GetKey(COutPoint &key) const override;
96+
bool GetValue(Coin &coin) const override;
97+
unsigned int GetValueSize() const override;
9898

99-
bool Valid() const;
100-
void Next();
99+
bool Valid() const override;
100+
void Next() override;
101101

102102
private:
103103
CCoinsViewDBCursor(CDBIterator* pcursorIn, const uint256 &hashBlockIn):

src/validationinterface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class CValidationInterface {
4242
virtual void Inventory(const uint256 &hash) {}
4343
virtual void ResendWalletTransactions(int64_t nBestBlockTime, CConnman* connman) {}
4444
virtual void BlockChecked(const CBlock&, const CValidationState&) {}
45-
virtual void GetScriptForMining(boost::shared_ptr<CReserveScript>&) {};
46-
virtual void ResetRequestCount(const uint256 &hash) {};
47-
virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& block) {};
45+
virtual void GetScriptForMining(boost::shared_ptr<CReserveScript>&) {}
46+
virtual void ResetRequestCount(const uint256 &hash) {}
47+
virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& block) {}
4848
friend void ::RegisterValidationInterface(CValidationInterface*);
4949
friend void ::UnregisterValidationInterface(CValidationInterface*);
5050
friend void ::UnregisterAllValidationInterfaces();

src/zmq/zmqnotificationinterface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class CZMQNotificationInterface : public CValidationInterface
2424
void Shutdown();
2525

2626
// CValidationInterface
27-
void SyncTransaction(const CTransaction& tx, const CBlockIndex *pindex, int posInBlock);
28-
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload);
29-
void NotifyTransactionLock(const CTransaction &tx);
27+
void SyncTransaction(const CTransaction& tx, const CBlockIndex *pindex, int posInBlock) override;
28+
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
29+
void NotifyTransactionLock(const CTransaction &tx) override;
3030

3131
private:
3232
CZMQNotificationInterface();

0 commit comments

Comments
 (0)