forked from qt-creator/qt-creator
Remove use of deprecated Qt algorithms
Change-Id: Ib35cffa2d5762874feea9b1d4df7f569c0e5f496 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
d4b3789db4
commit
670e54345c
@@ -30,6 +30,8 @@
|
||||
|
||||
#include <QStringMatcher>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using namespace CppTools;
|
||||
using namespace CppTools::Internal;
|
||||
|
||||
@@ -107,9 +109,9 @@ QList<Core::LocatorFilterEntry> CppLocatorFilter::matchesFor(
|
||||
});
|
||||
|
||||
if (goodEntries.size() < 1000)
|
||||
qStableSort(goodEntries.begin(), goodEntries.end(), compareLexigraphically);
|
||||
std::stable_sort(goodEntries.begin(), goodEntries.end(), compareLexigraphically);
|
||||
if (betterEntries.size() < 1000)
|
||||
qStableSort(betterEntries.begin(), betterEntries.end(), compareLexigraphically);
|
||||
std::stable_sort(betterEntries.begin(), betterEntries.end(), compareLexigraphically);
|
||||
|
||||
betterEntries += goodEntries;
|
||||
return betterEntries;
|
||||
|
||||
Reference in New Issue
Block a user