modernize: Use braced-init list when returning types
[quassel.git] / src / client / irclistmodel.cpp
index 32b39ec..91ea7ec 100644 (file)
@@ -77,7 +77,7 @@ QModelIndex IrcListModel::index(int row, int column, const QModelIndex &parent)
 {
     Q_UNUSED(parent);
     if (row >= rowCount() || column >= columnCount())
-        return QModelIndex();
+        return {};
 
     return createIndex(row, column);
 }