summaryrefslogtreecommitdiff
path: root/src/qdoc/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/generator.cpp')
-rw-r--r--src/qdoc/generator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qdoc/generator.cpp b/src/qdoc/generator.cpp
index 3ce5bf99d..81ad2a94b 100644
--- a/src/qdoc/generator.cpp
+++ b/src/qdoc/generator.cpp
@@ -190,7 +190,7 @@ void Generator::appendFullNames(Text& text, const NodeList& nodes, const Node* r
}
}
-void Generator::appendSortedNames(Text& text, const ClassNode* cn, const QList<RelatedClass>& rc)
+int Generator::appendSortedNames(Text& text, const ClassNode* cn, const QList<RelatedClass>& rc)
{
QList<RelatedClass>::ConstIterator r;
QMap<QString,Text> classMap;
@@ -216,9 +216,10 @@ void Generator::appendSortedNames(Text& text, const ClassNode* cn, const QList<R
text << classMap[className];
text << comma(index++, classNames.count());
}
+ return index;
}
-void Generator::appendSortedQmlNames(Text& text, const Node* base, const NodeList& subs)
+int Generator::appendSortedQmlNames(Text& text, const Node* base, const NodeList& subs)
{
QMap<QString,Text> classMap;
int index = 0;
@@ -239,6 +240,7 @@ void Generator::appendSortedQmlNames(Text& text, const Node* base, const NodeLis
text << classMap[name];
text << comma(index++, names.count());
}
+ return index;
}
/*!