modernize: Use braced-init list when returning types
[quassel.git] / src / qtui / settingspages / ignorelistmodel.cpp
index 6f639bd..ade96f7 100644 (file)
@@ -28,9 +28,7 @@
 #include "signalproxy.h"
 
 IgnoreListModel::IgnoreListModel(QObject *parent)
-    : QAbstractItemModel(parent),
-    _configChanged(false),
-    _modelReady(false)
+    : QAbstractItemModel(parent)
 {
     // we need this signal for future connects to reset the data;
     connect(Client::instance(), SIGNAL(connected()), this, SLOT(clientConnected()));
@@ -92,6 +90,7 @@ QVariant IgnoreListModel::data(const QModelIndex &index, int role) const
             else
                 return tr("By Message");
         }
+        // Intentional fallthrough
     case Qt::EditRole:
         switch (index.column()) {
         case 0:
@@ -222,7 +221,7 @@ QModelIndex IgnoreListModel::index(int row, int column, const QModelIndex &paren
 {
     Q_UNUSED(parent);
     if (row >= rowCount() || column >= columnCount())
-        return QModelIndex();
+        return {};
 
     return createIndex(row, column);
 }