modernize: Use nullptr
[quassel.git] / src / client / irclistmodel.h
index 9c25bd0..5cce869 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 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  *
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef IRCLISTMODEL_H
-#define IRCLISTMODEL_H
+#pragma once
+
+#include "client-export.h"
 
 #include "irclisthelper.h"
 
 #include <QAbstractItemModel>
 
-class IrcListModel : public QAbstractItemModel
+class CLIENT_EXPORT IrcListModel : public QAbstractItemModel
 {
     Q_OBJECT
 
 public:
-    IrcListModel(QObject *parent = 0);
+    IrcListModel(QObject *parent = nullptr);
 
     virtual QVariant data(const QModelIndex &index, int role) const;
     virtual Qt::ItemFlags flags(const QModelIndex &index) const;
@@ -50,6 +51,3 @@ public slots:
 private:
     QList<IrcListHelper::ChannelDescription> _channelList;
 };
-
-
-#endif //IRCLISTMODEL_H