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
@@ -28,6 +28,8 @@
|
||||
#include <QDataStream>
|
||||
#include <QDebug>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
TokenCommand::TokenCommand()
|
||||
@@ -59,7 +61,7 @@ QVector<qint32> TokenCommand::instances() const
|
||||
|
||||
void TokenCommand::sort()
|
||||
{
|
||||
qSort(m_instanceIdVector);
|
||||
std::sort(m_instanceIdVector.begin(), m_instanceIdVector.end());
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &out, const TokenCommand &command)
|
||||
|
||||
Reference in New Issue
Block a user