all repos — mgba @ 28383d4d319dd5c0db0682c5a8b544bb645dbf61

mGBA Game Boy Advance Emulator

Qt: Use QSet::values instead of ::toList
Vicki Pfau vi@endrift.com
Thu, 09 Jan 2020 18:33:00 -0800
commit

28383d4d319dd5c0db0682c5a8b544bb645dbf61

parent

f96b08c52f6effe8cb882a2f4cf7b03c1dfec38e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/CheatsModel.cppsrc/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));