From d733099a6f7c137170e63fa17896e95a35011ffd Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Tue, 9 Jan 2024 20:44:03 +0100 Subject: [PATCH] Replace qStableSort by std::stable_sort (#3936) qStableSort is deprecated. This patch replaces all usages by std::stable_sort. --- src/Core/RideCache.cpp | 2 +- src/Gui/RideNavigatorProxy.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/RideCache.cpp b/src/Core/RideCache.cpp index 1be689a59..65050cfe7 100644 --- a/src/Core/RideCache.cpp +++ b/src/Core/RideCache.cpp @@ -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); diff --git a/src/Gui/RideNavigatorProxy.h b/src/Gui/RideNavigatorProxy.h index ece0e5c4f..8928dd36d 100644 --- a/src/Gui/RideNavigatorProxy.h +++ b/src/Gui/RideNavigatorProxy.h @@ -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