Qt: Use QSet::values instead of ::toList
Vicki Pfau vi@endrift.com
Thu, 09 Jan 2020 18:33:00 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/CheatsModel.cpp
→
src/platform/qt/CheatsModel.cpp
@@ -184,7 +184,7 @@ QList<int> order = setOrder.keys();
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));