summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.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/cppcodemarker.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/cppcodemarker.cpp')
-rw-r--r--src/qdoc/cppcodemarker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/cppcodemarker.cpp b/src/qdoc/cppcodemarker.cpp
index 06e33d09e..843e24db6 100644
--- a/src/qdoc/cppcodemarker.cpp
+++ b/src/qdoc/cppcodemarker.cpp
@@ -495,7 +495,7 @@ QString CppCodeMarker::addMarkUp(const QString &in,
keywords.insert(keywordTable[j]);
}
#define readChar() \
- ch = (i < (int)code.length()) ? code[i++].cell() : EOF
+ ch = (i < code.length()) ? code[i++].cell() : EOF
QString code = in;
QString out;