summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-11-28 17:02:58 +0100
committerPaul Wicking <paul.wicking@qt.io>2019-12-12 19:28:57 +0100
commit12b49b0d394504d671c944359690066fefd88984 (patch)
treedfc364f67f085223cf2722fb9ff31afb324b8a8d /src/qdoc/cppcodeparser.cpp
parent37a8e5abc6f6a15fd3835bdc0c0bee5efb2334aa (diff)
downloadqttools-12b49b0d394504d671c944359690066fefd88984.tar.gz
QDoc: Use QVector instead of QList
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 <marten.nordheim@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp2
1 files changed, 1 insertions, 1 deletions
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<Doc>::Iterator d = docs.begin();
+ QVector<Doc>::Iterator d = docs.begin();
for (const auto &node : nodes) {
if (node != nullptr) {
processMetaCommands(*d, node);