mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Replace qStableSort by std::stable_sort (#3936)
qStableSort is deprecated. This patch replaces all usages by std::stable_sort.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user