qdoc: Fixed recursion of \sincelist command handling

QDoc uses a recursive method of resolving all the classes, QML types,
properties, functions etc. added since a specified Qt version.

The code entered the next level of recursion only if its parent had
set a \since version, which was not always the case.

Task-number: QTBUG-41862
Change-Id: I3803ed9ffa472165754358f3906955430a893de1
Reviewed-by: Martin Smith <martin.smith@digia.com>
This commit is contained in:
Topi Reinio 2014-10-14 12:16:44 +02:00 committed by Topi Reiniö
parent 648623ff23
commit 65b563fe57

View File

@ -1253,11 +1253,11 @@ void QDocDatabase::findAllSince(InnerNode* node)
nsmap.value().insert(name,(*child));
}
}
// Recursively find child nodes with since commands.
if ((*child)->isInnerNode()) {
findAllSince(static_cast<InnerNode *>(*child));
}
}
// Recursively find child nodes with since commands.
if ((*child)->isInnerNode())
findAllSince(static_cast<InnerNode *>(*child));
++child;
}
}