mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #800 Fixed making unnecessary copies.
This commit is contained in:
committed by
Klaus Basan
parent
6f972035ab
commit
429c6946c6
@@ -331,7 +331,7 @@ namespace BlackGui
|
||||
QList<int> CGuiUtility::indexToUniqueRows(const QModelIndexList &indexes)
|
||||
{
|
||||
QList<int> rows;
|
||||
for (const QModelIndex i : indexes)
|
||||
for (const QModelIndex &i : indexes)
|
||||
{
|
||||
const int r = i.row();
|
||||
if (rows.contains(r)) { continue; }
|
||||
|
||||
Reference in New Issue
Block a user