summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2019-01-17 16:52:59 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2019-01-22 15:13:29 +0000
commit8ff03236c50ae73b7e4d362b5271317fd6f4d26e (patch)
treed3ccfae0443d38c8d1d582b14ad7d1717a16a652 /src/qdoc/cppcodeparser.cpp
parent92a961934dbf51305235f24f213d75eeb7a39d1b (diff)
downloadqttools-8ff03236c50ae73b7e4d362b5271317fd6f4d26e.tar.gz
Replace nodeType() comparisons to Node:X with isX() tests
Change-Id: I62692b4b667a32fe77ee9dc51be15114aae9387b Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@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 55b4e8ce9..83b989033 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -604,7 +604,7 @@ void CppCodeParser::processOtherMetaCommand(const Doc& doc,
}
else if (command == COMMAND_REIMP) {
if (node != 0 && node->parent() && !node->parent()->isInternal()) {
- if (node->nodeType() == Node::Function) {
+ if (node->isFunction()) {
FunctionNode *func = (FunctionNode *) node;
if (func->reimplementedFrom().isEmpty() && isWorthWarningAbout(doc)) {
doc.location().warning(tr("Cannot find base function for '\\%1' in %2()")