Replace qStableSort by std::stable_sort (#3936)

qStableSort is deprecated. This patch replaces all usages by
std::stable_sort.
This commit is contained in:
Andreas Buhr
2024-01-09 20:44:03 +01:00
committed by GitHub
parent 84c29e8610
commit d733099a6f
2 changed files with 2 additions and 2 deletions

View File

@@ -736,7 +736,7 @@ RideCache::getBests(QString symbol, int n, Specification specification, bool use
}
// now sort
qStableSort(results.begin(), results.end(), metric->isLowerBetter() ?
std::stable_sort(results.begin(), results.end(), metric->isLowerBetter() ?
rideCachesummaryBestLowerThan :
rideCachesummaryBestGreaterThan);

View File

@@ -533,7 +533,7 @@ public:
}
// sort by row again
qStableSort(rankedRows.begin(), rankedRows.end(), rankx::sortByRow);
std::stable_sort(rankedRows.begin(), rankedRows.end(), rankx::sortByRow);
// create a QMap from 'group' string to list of rows in that group