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 <marc.mutz@kdab.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
8c4323c74d
commit
dfa36cd65d
@ -73,6 +73,8 @@
|
||||
#include <QtCore/qmetaobject.h>
|
||||
#include <qdebug.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
/*!
|
||||
@ -438,7 +440,7 @@ QList<QAbstractState*> QStateMachinePrivate::computeStatesToExit(const QList<QAb
|
||||
}
|
||||
}
|
||||
QList<QAbstractState*> 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<QAbstractState*> QStateMachinePrivate::computeStatesToEnter(const QList<QA
|
||||
}
|
||||
|
||||
QList<QAbstractState*> statesToEnter_sorted = statesToEnter.toList();
|
||||
qSort(statesToEnter_sorted.begin(), statesToEnter_sorted.end(), stateEntryLessThan);
|
||||
std::sort(statesToEnter_sorted.begin(), statesToEnter_sorted.end(), stateEntryLessThan);
|
||||
return statesToEnter_sorted;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user