summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/qdocindexfiles.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <[email protected]>2013-09-03 00:43:13 +0200
committerThe Qt Project <[email protected]>2013-09-13 13:53:55 +0200
commit1119eb57424478213c911ce260af23842dcf741f (patch)
treec0673ef050c6bbdf93d816172914e28d02ec72d4 /src/tools/qdoc/qdocindexfiles.cpp
parent173ce3ab93ea1ff40cd68b6fad46f59773a177ca (diff)
Remove qSort usages from qdoc
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/[email protected]/msg01603.html Change-Id: I419d767ea18944917888037899e6ececdb014e82 Reviewed-by: Martin Smith <[email protected]> Reviewed-by: Topi Reiniƶ <[email protected]>
Diffstat (limited to 'src/tools/qdoc/qdocindexfiles.cpp')
-rw-r--r--src/tools/qdoc/qdocindexfiles.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/qdoc/qdocindexfiles.cpp b/src/tools/qdoc/qdocindexfiles.cpp
index 21731f921bd..265142d320b 100644
--- a/src/tools/qdoc/qdocindexfiles.cpp
+++ b/src/tools/qdoc/qdocindexfiles.cpp
@@ -50,6 +50,8 @@
#include "generator.h"
#include <qdebug.h>
+#include <algorithm>
+
QT_BEGIN_NAMESPACE
/*!
@@ -1202,7 +1204,7 @@ void QDocIndexFiles::generateIndexSections(QXmlStreamWriter& writer,
const InnerNode* inner = static_cast<const InnerNode*>(node);
NodeList cnodes = inner->childNodes();
- qSort(cnodes.begin(), cnodes.end(), compareNodes);
+ std::sort(cnodes.begin(), cnodes.end(), compareNodes);
foreach (Node* child, cnodes) {
/*