Remove qSort usage from rcc
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I09dc82b7f9509f73c7b8b9c16a08fefb8ca0b8a5 Reviewed-by: hjk <hjk121@nokiamail.com>bb10
parent
e82c7a8abf
commit
10e690506e
|
|
@ -52,6 +52,8 @@
|
|||
#include <qstack.h>
|
||||
#include <qxmlstream.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
// Note: A copy of this file is used in Qt Designer (qttools/src/designer/src/lib/shared/rcc.cpp)
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
|
@ -905,7 +907,7 @@ bool RCCResourceLibrary::writeDataStructure()
|
|||
|
||||
//sort by hash value for binary lookup
|
||||
QList<RCCFileInfo*> m_children = file->m_children.values();
|
||||
qSort(m_children.begin(), m_children.end(), qt_rcc_compare_hash);
|
||||
std::sort(m_children.begin(), m_children.end(), qt_rcc_compare_hash);
|
||||
|
||||
//write out the actual data now
|
||||
for (int i = 0; i < m_children.size(); ++i) {
|
||||
|
|
@ -924,7 +926,7 @@ bool RCCResourceLibrary::writeDataStructure()
|
|||
|
||||
//sort by hash value for binary lookup
|
||||
QList<RCCFileInfo*> m_children = file->m_children.values();
|
||||
qSort(m_children.begin(), m_children.end(), qt_rcc_compare_hash);
|
||||
std::sort(m_children.begin(), m_children.end(), qt_rcc_compare_hash);
|
||||
|
||||
//write out the actual data now
|
||||
for (int i = 0; i < m_children.size(); ++i) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue