From abe229291b292e1e5d0d07b23c130991b347ae78 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 26 Sep 2013 10:29:45 +0200 Subject: Remove QtAlgorithms usage from QtScript. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: If4dc8f69fd75315390a4850be732715064f5fdd8 Reviewed-by: Jędrzej Nowacki Reviewed-by: Giuseppe D'Angelo --- src/scripttools/debugging/qscriptcompletiontask.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/scripttools/debugging/qscriptcompletiontask.cpp') diff --git a/src/scripttools/debugging/qscriptcompletiontask.cpp b/src/scripttools/debugging/qscriptcompletiontask.cpp index 7ea204f..769293d 100644 --- a/src/scripttools/debugging/qscriptcompletiontask.cpp +++ b/src/scripttools/debugging/qscriptcompletiontask.cpp @@ -54,6 +54,8 @@ #include #include +#include + QT_BEGIN_NAMESPACE class QScriptCompletionTaskPrivate @@ -284,7 +286,7 @@ void QScriptCompletionTask::start() if (isPrefixOf(arg, name)) d->results.append(name); } - qStableSort(d->results); + std::stable_sort(d->results.begin(), d->results.end()); } else if (argType == QLatin1String("script")) { d->completeScriptExpression(); } else { -- cgit v1.2.1