Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit fa55bb9d authored by Laurent Montel's avatar Laurent Montel 😁

Use const'ref here

parent 00d0aaba
......@@ -879,7 +879,7 @@ QList< MessageItem * > View::selectionAsMessageItemList(bool includeCollapsedChi
if (lSelected.isEmpty()) {
return selectedMessages;
}
for (const auto idx : qAsConst(lSelected)) {
for (const auto &idx : qAsConst(lSelected)) {
// The asserts below are theoretically valid but at the time
// of writing they fail because of a bug in QItemSelectionModel::selectedRows()
// which returns also non-selectable items.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment