modernize: Pass arguments by value and move in constructors
[quassel.git] / src / qtui / settingspages / identityeditwidget.h
index 1f83b0b..19c6774 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 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  *
@@ -15,7 +15,7 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
 #ifndef IDENTITYEDITWIDGET_H
@@ -36,7 +36,7 @@ class IdentityEditWidget : public QWidget
     Q_OBJECT
 
 public:
-    IdentityEditWidget(QWidget *parent = 0);
+    IdentityEditWidget(QWidget *parent = nullptr);
 
     enum SslState {
         NoSsl,
@@ -44,7 +44,7 @@ public:
         AllowSsl
     };
 
-    void displayIdentity(CertIdentity *id, CertIdentity *saveId = 0);
+    void displayIdentity(CertIdentity *id, CertIdentity *saveId = nullptr);
     void saveToIdentity(CertIdentity *id);
 
 public slots:
@@ -53,7 +53,7 @@ public slots:
 
 protected:
 #ifdef HAVE_SSL
-    virtual bool eventFilter(QObject *watched, QEvent *event);
+    bool eventFilter(QObject *watched, QEvent *event) override;
 #endif
 
 signals:
@@ -98,7 +98,7 @@ class NickEditDlg : public QDialog
     Q_OBJECT
 
 public:
-    NickEditDlg(const QString &oldnick, const QStringList &existing = QStringList(), QWidget *parent = 0);
+    NickEditDlg(const QString &oldnick, QStringList existing = QStringList(), QWidget *parent = nullptr);
 
     QString nick() const;