aboutsummaryrefslogtreecommitdiff
path: root/src/qt/peertablemodel.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2019-08-21 09:42:29 +0800
committerfanquake <fanquake@gmail.com>2019-08-22 13:40:51 +0800
commitfea33cbbdfb4673033f3414bf1613591ff654aac (patch)
tree88620a4ef6e61efef8ad313bdfcaa581289455f6 /src/qt/peertablemodel.cpp
parent8ee572f0940bbf1823e946ec507c5fe46db90fb8 (diff)
downloadbitcoin-fea33cbbdfb4673033f3414bf1613591ff654aac.tar.xz
refactor: replace qStableSort with std::stable_sort
Diffstat (limited to 'src/qt/peertablemodel.cpp')
-rw-r--r--src/qt/peertablemodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp
index 85b691c470..99a9a12fe2 100644
--- a/src/qt/peertablemodel.cpp
+++ b/src/qt/peertablemodel.cpp
@@ -11,6 +11,8 @@
#include <interfaces/node.h>
#include <sync.h>
+#include <algorithm>
+
#include <QDebug>
#include <QList>
#include <QTimer>
@@ -76,7 +78,7 @@ public:
if (sortColumn >= 0)
// sort cacheNodeStats (use stable sort to prevent rows jumping around unnecessarily)
- qStableSort(cachedNodeStats.begin(), cachedNodeStats.end(), NodeLessThan(sortColumn, sortOrder));
+ std::stable_sort(cachedNodeStats.begin(), cachedNodeStats.end(), NodeLessThan(sortColumn, sortOrder));
// build index map
mapNodeRows.clear();