diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-08-03 23:29:58 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-08-09 13:41:25 +0000 |
commit | 670e54345c6ede1b5edac7a5351736c1c98e0f6c (patch) | |
tree | 6b64bead973269b6156f8304b65492b04751faeb /src/plugins/cpptools/cpplocatorfilter.cpp | |
parent | d4b3789db497390d16ebd3ab7b61d0d93dc9c244 (diff) |
Remove use of deprecated Qt algorithms
Change-Id: Ib35cffa2d5762874feea9b1d4df7f569c0e5f496
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpplocatorfilter.cpp')
-rw-r--r-- | src/plugins/cpptools/cpplocatorfilter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpplocatorfilter.cpp b/src/plugins/cpptools/cpplocatorfilter.cpp index cd50cc2bcdd..6c735582711 100644 --- a/src/plugins/cpptools/cpplocatorfilter.cpp +++ b/src/plugins/cpptools/cpplocatorfilter.cpp @@ -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; |