From 299e529fb955eecbc2bc2f2d8830c4f54fe5777d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 4 Jul 2016 10:35:10 +0200 Subject: various: don't use qSort/qStableSort --- spline-widget/functionconfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spline-widget') diff --git a/spline-widget/functionconfig.cpp b/spline-widget/functionconfig.cpp index e66a6812..915510ca 100644 --- a/spline-widget/functionconfig.cpp +++ b/spline-widget/functionconfig.cpp @@ -127,7 +127,7 @@ void Map::reload() { if (cur.input.size()) { - qStableSort(cur.input.begin(), cur.input.end(), sortFn); + std::stable_sort(cur.input.begin(), cur.input.end(), sortFn); QList input = cur.input; auto& data = cur.data; @@ -217,7 +217,7 @@ void Map::addPoint(QPointF pt) QMutexLocker foo(&_mutex); cur.input.append(pt); reload(); - qStableSort(cur.input.begin(), cur.input.end(), sortFn); + std::stable_sort(cur.input.begin(), cur.input.end(), sortFn); } void Map::movePoint(int idx, QPointF pt) -- cgit v1.2.3