modernize: Use braced-init list when returning types
[quassel.git] / src / qtui / settingspages / ignorelistmodel.cpp
index d95db34..ade96f7 100644 (file)
@@ -221,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);
 }