summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qdoc/xmlgenerator.cpp10
-rw-r--r--src/qdoc/xmlgenerator.h2
2 files changed, 4 insertions, 8 deletions
diff --git a/src/qdoc/xmlgenerator.cpp b/src/qdoc/xmlgenerator.cpp
index 8b266ca18..78e3b81e0 100644
--- a/src/qdoc/xmlgenerator.cpp
+++ b/src/qdoc/xmlgenerator.cpp
@@ -26,10 +26,6 @@
**
****************************************************************************/
-/*
- xmlgenerator.cpp
-*/
-
#include "xmlgenerator.h"
#include "qdocdatabase.h"
@@ -316,7 +312,7 @@ QString XmlGenerator::linkForNode(const Node *node, const Node *relative)
return QString();
QString fn = fileName(node);
- if (node && node->parent() && (node->parent()->isQmlType() || node->parent()->isJsType())
+ if (node->parent() && (node->parent()->isQmlType() || node->parent()->isJsType())
&& node->parent()->isAbstract()) {
if (Generator::qmlTypeContext()) {
if (Generator::qmlTypeContext()->inherits(node->parent())) {
@@ -346,7 +342,7 @@ QString XmlGenerator::linkForNode(const Node *node, const Node *relative)
the link must go up to the parent directory and then
back down into the other subdirectory.
*/
- if (node && relative && (node != relative)) {
+ if (relative && (node != relative)) {
if (useOutputSubdirs() && !node->isExternalPage()
&& node->outputSubdirectory() != relative->outputSubdirectory()) {
if (link.startsWith(QString(node->outputSubdirectory() + QLatin1Char('/')))) {
@@ -419,7 +415,7 @@ QString XmlGenerator::getAutoLink(const Atom *atom, const Node *relative, const
return link;
}
-const QPair<QString, QString> XmlGenerator::anchorForNode(const Node *node)
+QPair<QString, QString> XmlGenerator::anchorForNode(const Node *node)
{
QPair<QString, QString> anchorPair;
diff --git a/src/qdoc/xmlgenerator.h b/src/qdoc/xmlgenerator.h
index 41744ff21..0397096c5 100644
--- a/src/qdoc/xmlgenerator.h
+++ b/src/qdoc/xmlgenerator.h
@@ -61,7 +61,7 @@ protected:
QString getLink(const Atom *atom, const Node *relative, const Node **node);
QString getAutoLink(const Atom *atom, const Node *relative, const Node **node);
- const QPair<QString, QString> anchorForNode(const Node *node);
+ QPair<QString, QString> anchorForNode(const Node *node);
static QString targetType(const Node *node);
};