modernize: Use braced-init list when returning types
[quassel.git] / src / qtui / settingspages / aliasesmodel.cpp
index 569f56c..cf868f0 100644 (file)
@@ -27,9 +27,7 @@
 #include "signalproxy.h"
 
 AliasesModel::AliasesModel(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()));
@@ -257,7 +255,7 @@ QModelIndex AliasesModel::index(int row, int column, const QModelIndex &parent)
 {
     Q_UNUSED(parent);
     if (row >= rowCount() || column >= columnCount())
-        return QModelIndex();
+        return {};
 
     return createIndex(row, column);
 }