From 6d19911c0db508a1c0079890a0adc8f6ab87bcf7 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Mon, 22 Jul 2019 13:23:22 +0200 Subject: Doc: Replace "return 0" with "return \nullptr" in QDoc's node.cpp Change-Id: Idfaf778aa13cb461bb9e0db344033aa8147a51d3 Reviewed-by: Martin Smith --- src/qdoc/node.cpp | 12 +++++++----- 1 file 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) { -- cgit v1.2.1