From 12b49b0d394504d671c944359690066fefd88984 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Thu, 28 Nov 2019 17:02:58 +0100 Subject: QDoc: Use QVector instead of QList MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the use of QVector in most of QDoc. Also, remove one redundant C-style cast to int for result from method call that returns an int. As this happened in a macro, the result is removing a whole bunch of nagging from code inspection. Fixes: QTBUG-80669 Change-Id: Ib1aed95e01eaddd1e1213a145e815a0c4753ac67 Reviewed-by: MÃ¥rten Nordheim --- src/qdoc/cppcodeparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qdoc/cppcodeparser.cpp') diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index e92a5d7de..ce92448de 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -1015,7 +1015,7 @@ void CppCodeParser::processTopicArgs(const Doc &doc, const QString &topic, NodeL void CppCodeParser::processMetaCommands(NodeList &nodes, DocList &docs) { - QList::Iterator d = docs.begin(); + QVector::Iterator d = docs.begin(); for (const auto &node : nodes) { if (node != nullptr) { processMetaCommands(*d, node); -- cgit v1.2.1