From dfa36cd65d8874a2cd7831822da67349d9c87dad Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Thu, 1 Nov 2012 23:38:47 +0100 Subject: Remove qSort usages from statemachines QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I6edaafa75348a4e8795c3e29eeea9c45c178b621 Reviewed-by: Marc Mutz Reviewed-by: Olivier Goffart --- src/corelib/statemachine/qstatemachine.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/corelib/statemachine/qstatemachine.cpp b/src/corelib/statemachine/qstatemachine.cpp index 1f14b0f8c5..883d62113c 100644 --- a/src/corelib/statemachine/qstatemachine.cpp +++ b/src/corelib/statemachine/qstatemachine.cpp @@ -73,6 +73,8 @@ #include #include +#include + QT_BEGIN_NAMESPACE /*! @@ -438,7 +440,7 @@ QList QStateMachinePrivate::computeStatesToExit(const QList statesToExit_sorted = statesToExit.toList(); - qSort(statesToExit_sorted.begin(), statesToExit_sorted.end(), stateExitLessThan); + std::sort(statesToExit_sorted.begin(), statesToExit_sorted.end(), stateExitLessThan); return statesToExit_sorted; } @@ -541,7 +543,7 @@ QList QStateMachinePrivate::computeStatesToEnter(const QList statesToEnter_sorted = statesToEnter.toList(); - qSort(statesToEnter_sorted.begin(), statesToEnter_sorted.end(), stateEntryLessThan); + std::sort(statesToEnter_sorted.begin(), statesToEnter_sorted.end(), stateEntryLessThan); return statesToEnter_sorted; } -- cgit v1.2.3