From c60b7b213e0d1490125fbabe87121af451eb5a4b Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 6 Mar 2018 23:41:18 +0800 Subject: [PATCH] Add missing 'override' specifier This fixes clang warning: 'notify' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] --- src/app/application.h | 2 +- src/gui/transferlistwidget.h | 2 +- src/webui/webapplication.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/application.h b/src/app/application.h index f9014d9fb..a2239e02d 100644 --- a/src/app/application.h +++ b/src/app/application.h @@ -112,7 +112,7 @@ protected: #ifdef Q_OS_MAC bool event(QEvent *); #endif - bool notify(QObject* receiver, QEvent* event); + bool notify(QObject* receiver, QEvent* event) override; #endif private slots: diff --git a/src/gui/transferlistwidget.h b/src/gui/transferlistwidget.h index fc0a69d97..ef272fd55 100644 --- a/src/gui/transferlistwidget.h +++ b/src/gui/transferlistwidget.h @@ -110,7 +110,7 @@ protected: protected slots: void torrentDoubleClicked(); void displayListMenu(const QPoint&); - void currentChanged(const QModelIndex& current, const QModelIndex&); + void currentChanged(const QModelIndex& current, const QModelIndex&) override; void toggleSelectedTorrentsSuperSeeding() const; void toggleSelectedTorrentsSequentialDownload() const; void toggleSelectedFirstLastPiecePrio() const; diff --git a/src/webui/webapplication.h b/src/webui/webapplication.h index 73a36a07c..c5cb5faba 100644 --- a/src/webui/webapplication.h +++ b/src/webui/webapplication.h @@ -88,7 +88,7 @@ public: explicit WebApplication(QObject *parent = nullptr); ~WebApplication() override; - Http::Response processRequest(const Http::Request &request, const Http::Environment &env); + Http::Response processRequest(const Http::Request &request, const Http::Environment &env) override; QString clientId() const override; WebSession *session() override;