mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
Avoid Qt-version-specific qMakePair helper in Essence chart ordering
This commit is contained in:
parent
ff660daa71
commit
f0adc0eaa6
1 changed files with 2 additions and 2 deletions
|
|
@ -33,13 +33,13 @@ inline QList<QPair<QString, int>> ordered(const QMap<QString, int> &values)
|
|||
const QString key(code);
|
||||
auto it = values.constFind(key);
|
||||
if (it != values.cend()) {
|
||||
result.append(qMakePair(it.key(), it.value()));
|
||||
result.append({it.key(), it.value()});
|
||||
used.insert(key);
|
||||
}
|
||||
}
|
||||
for (auto it = values.cbegin(); it != values.cend(); ++it) {
|
||||
if (!used.contains(it.key())) {
|
||||
result.append(qMakePair(it.key(), it.value()));
|
||||
result.append({it.key(), it.value()});
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue