diff options
author | Paul Wicking <paul.wicking@qt.io> | 2019-07-22 13:23:22 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2019-07-23 15:50:45 +0200 |
commit | 6d19911c0db508a1c0079890a0adc8f6ab87bcf7 (patch) | |
tree | 00c026d4a0ee3994ea4160af47fe6cd789d1dfc4 | |
parent | 466d87a7c92436e0da98005475065dc212cac71c (diff) | |
download | qttools-6d19911c0db508a1c0079890a0adc8f6ab87bcf7.tar.gz |
Doc: Replace "return 0" with "return \nullptr" in QDoc's node.cpp
Change-Id: Idfaf778aa13cb461bb9e0db344033aa8147a51d3
Reviewed-by: Martin Smith <martin.smith@qt.io>
-rw-r--r-- | src/qdoc/node.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/qdoc/node.cpp b/src/qdoc/node.cpp index 2ec58dc3a..f0ffafa1b 100644 --- a/src/qdoc/node.cpp +++ b/src/qdoc/node.cpp @@ -1493,7 +1493,7 @@ QString Node::physicalModuleName() const /*! If this node has a child that is a QML property or JS property - named \a n, return a pointer to that child. Otherwise return 0. + named \a n, return a pointer to that child. Otherwise, return \nullptr. */ QmlPropertyNode* Aggregate::hasQmlProperty(const QString& n) const { @@ -1840,8 +1840,9 @@ QmlTypeNode* ClassNode::findQmlBaseNode() \a fn is an overriding function in this class or in a class derived from this class. Find the node for the function that \a fn overrides in this class's children or in one of this - class's base classes. Return a pointer to the overridden - function or return 0. + class's base classes. + + \returns a pointer to the overridden function, or \nullptr. This should be revised because clang provides the path to the overridden function. mws 15/12/2018 @@ -1872,8 +1873,9 @@ FunctionNode* ClassNode::findOverriddenFunction(const FunctionNode* fn) \a fn is an overriding function in this class or in a class derived from this class. Find the node for the property that \a fn overrides in this class's children or in one of this - class's base classes. Return a pointer to the overridden - property or return 0. + class's base classes. + + \returns a pointer to the overridden function, or \nullptr. */ PropertyNode* ClassNode::findOverriddenProperty(const FunctionNode* fn) { |