From fb20b2637368365b76ccfac30dcf8fdd38d0fd36 Mon Sep 17 00:00:00 2001 From: Sune Vuorela Date: Thu, 16 Jun 2016 00:23:55 +0200 Subject: Less randomness in qdoc output part II Sort more lists before writing output Extract an existing function for comparing nodes, and use it across the code base Fix up the function to also sort private nodes, it is needed for reliable sorting. Change-Id: I934c875ef3e8a36d0e684f5b67d0ca1b81e5716f Reviewed-by: Martin Smith --- src/qdoc/cppcodeparser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/qdoc/cppcodeparser.cpp') diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index c1295c3a7..27cf92042 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -1031,8 +1031,9 @@ void CppCodeParser::processOtherMetaCommand(const Doc& doc, */ void CppCodeParser::processOtherMetaCommands(const Doc& doc, Node *node) { - const QSet metaCommands = doc.metaCommandsUsed(); - QSet::ConstIterator cmd = metaCommands.constBegin(); + QStringList metaCommands = doc.metaCommandsUsed().toList(); + metaCommands.sort(); + QStringList::ConstIterator cmd = metaCommands.constBegin(); while (cmd != metaCommands.constEnd()) { ArgList args = doc.metaCommandArgs(*cmd); ArgList::ConstIterator arg = args.constBegin(); -- cgit v1.2.1