modernize: Use override instead of virtual
[quassel.git] / src / qtui / settingspages / identitiessettingspage.h
index f8861ce..3674c34 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2012 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -18,8 +18,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef IDENTITIESSETTINGSPAGE_H
-#define IDENTITIESSETTINGSPAGE_H
+#pragma once
 
 #include "clientidentity.h"
 #include "settingspage.h"
@@ -37,15 +36,15 @@ class IdentitiesSettingsPage : public SettingsPage
     Q_OBJECT
 
 public:
-    IdentitiesSettingsPage(QWidget *parent = 0);
+    IdentitiesSettingsPage(QWidget *parent = nullptr);
 
-    virtual inline bool needsCoreConnection() const { return true; }
+    inline bool needsCoreConnection() const override { return true; }
 
-    bool aboutToSave();
+    bool aboutToSave() override;
 
 public slots:
-    void save();
-    void load();
+    void save() final override;
+    void load() final override;
 
 private slots:
     void coreConnectionStateChanged(bool);
@@ -99,7 +98,7 @@ class CreateIdentityDlg : public QDialog
     Q_OBJECT
 
 public:
-    CreateIdentityDlg(QAbstractItemModel *model, QWidget *parent = 0);
+    CreateIdentityDlg(QAbstractItemModel *model, QWidget *parent = nullptr);
 
     QString identityName() const;
     IdentityId duplicateId() const;
@@ -117,7 +116,7 @@ class SaveIdentitiesDlg : public QDialog
     Q_OBJECT
 
 public:
-    SaveIdentitiesDlg(const QList<CertIdentity *> &toCreate, const QList<CertIdentity *> &toUpdate, const QList<IdentityId> &toRemove, QWidget *parent = 0);
+    SaveIdentitiesDlg(const QList<CertIdentity *> &toCreate, const QList<CertIdentity *> &toUpdate, const QList<IdentityId> &toRemove, QWidget *parent = nullptr);
 
 private slots:
     void clientEvent();
@@ -127,6 +126,3 @@ private:
 
     int numevents, rcvevents;
 };
-
-
-#endif