summaryrefslogtreecommitdiffhomepage
path: root/spline-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-04 10:35:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-04 10:35:10 +0200
commit299e529fb955eecbc2bc2f2d8830c4f54fe5777d (patch)
treed116e9b5e21790cb8cf854b116742d15fd309ac4 /spline-widget
parent0fe80d8926fc35d23d99f551aef753be16c8939e (diff)
various: don't use qSort/qStableSort
Diffstat (limited to 'spline-widget')
-rw-r--r--spline-widget/functionconfig.cpp4
1 files changed, 2 insertions, 2 deletions
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<QPointF> 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)