Fix inconsistent use of override in NickListWidget
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 1 Mar 2016 19:01:14 +0000 (20:01 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Feb 2018 22:01:31 +0000 (23:01 +0100)
Clang warns about this.

(cherry picked from commit 7ad7c792cae055a6549916ad190d6c8479bf674e)

src/qtui/nicklistwidget.h

index 1b7253f..e73f6e2 100644 (file)
@@ -48,13 +48,13 @@ signals:
     void nickSelectionChanged(const QModelIndexList &);
 
 protected:
     void nickSelectionChanged(const QModelIndexList &);
 
 protected:
-    virtual QSize sizeHint() const;
-    virtual void hideEvent(QHideEvent *);
-    virtual void showEvent(QShowEvent *);
+    QSize sizeHint() const override;
+    void hideEvent(QHideEvent *) override;
+    void showEvent(QShowEvent *) override;
 
 protected slots:
 
 protected slots:
-    virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous);
-    virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
+    void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;
+    void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override;
 
 private slots:
     void removeBuffer(BufferId bufferId);
 
 private slots:
     void removeBuffer(BufferId bufferId);