Qt: Use QSet::values instead of ::toList

This commit is contained in:
Vicki Pfau 2020-01-09 18:33:00 -08:00
parent f96b08c52f
commit 28383d4d31
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ QString CheatsModel::toString(const QModelIndexList& indices) const {
std::sort(order.begin(), order.end());
for (int i : order) {
mCheatSet* set = setOrder[i];
QList<size_t> indexOrdex = setIndices[set].toList();
QList<size_t> indexOrdex = setIndices[set].values();
std::sort(indexOrdex.begin(), indexOrdex.end());
for (size_t j : indexOrdex) {
strings.append(*StringListGetPointer(&set->lines, j));