mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +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> CGuiUtility::indexToUniqueRows(const QModelIndexList &indexes)
|
||||||
{
|
{
|
||||||
QList<int> rows;
|
QList<int> rows;
|
||||||
for (const QModelIndex i : indexes)
|
for (const QModelIndex &i : indexes)
|
||||||
{
|
{
|
||||||
const int r = i.row();
|
const int r = i.row();
|
||||||
if (rows.contains(r)) { continue; }
|
if (rows.contains(r)) { continue; }
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace BlackMisc
|
|||||||
for (const Obj &obj : container)
|
for (const Obj &obj : container)
|
||||||
{
|
{
|
||||||
QString rowHtml;
|
QString rowHtml;
|
||||||
for (const CPropertyIndex index : indexes)
|
for (const CPropertyIndex &index : indexes)
|
||||||
{
|
{
|
||||||
rowHtml += "<td>" + obj.propertyByIndex(index).toQString(true) + "</td>";
|
rowHtml += "<td>" + obj.propertyByIndex(index).toQString(true) + "</td>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ namespace BlackMisc
|
|||||||
rowHtml += "<td>" + QString::number(line++) + "</td>";
|
rowHtml += "<td>" + QString::number(line++) + "</td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const CPropertyIndex index : usedIndexes)
|
for (const CPropertyIndex &index : usedIndexes)
|
||||||
{
|
{
|
||||||
rowHtml += "<td>" + statusMessage.propertyByIndex(index).toQString(true) + "</td>";
|
rowHtml += "<td>" + statusMessage.propertyByIndex(index).toQString(true) + "</td>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user