summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/cppcodemarker.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2010-12-21 17:42:48 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2010-12-21 17:42:48 (GMT)
commit75b4b1a99d1ea0f8549b188ec29a3a9103bc587a (patch)
tree29789badcc93a92cef4257e3181c5faaef2101cf /tools/qdoc3/cppcodemarker.cpp
parent8a795bb375d50efd99daa3135d6f7079b83278e9 (diff)
parentea41ba11fc848dbefecb0cde324478ab1986e555 (diff)
downloadQt-75b4b1a99d1ea0f8549b188ec29a3a9103bc587a.zip
Qt-75b4b1a99d1ea0f8549b188ec29a3a9103bc587a.tar.gz
Qt-75b4b1a99d1ea0f8549b188ec29a3a9103bc587a.tar.bz2
Merge branch 'qdoc-simplified' into 4.7
Diffstat (limited to 'tools/qdoc3/cppcodemarker.cpp')
-rw-r--r--tools/qdoc3/cppcodemarker.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/qdoc3/cppcodemarker.cpp b/tools/qdoc3/cppcodemarker.cpp
index 55a455f..8ea1c7f 100644
--- a/tools/qdoc3/cppcodemarker.cpp
+++ b/tools/qdoc3/cppcodemarker.cpp
@@ -157,9 +157,9 @@ QString CppCodeMarker::plainFullName(const Node *node, const Node *relative)
QString CppCodeMarker::markedUpCode(const QString &code,
const Node *relative,
- const QString &dirPath)
+ const Location &location)
{
- return addMarkUp(protect(code), relative, dirPath);
+ return addMarkUp(protect(code), relative, location);
}
QString CppCodeMarker::markedUpSynopsis(const Node *node,
@@ -440,7 +440,8 @@ QString CppCodeMarker::markedUpIncludes(const QStringList& includes)
code += "#include &lt;<@headerfile>" + *inc + "</@headerfile>&gt;\n";
++inc;
}
- return addMarkUp(code, 0, "");
+ Location location;
+ return addMarkUp(code, 0, location);
}
QString CppCodeMarker::functionBeginRegExp(const QString& funcName)
@@ -868,7 +869,7 @@ const Node *CppCodeMarker::resolveTarget(const QString& target,
QString CppCodeMarker::addMarkUp(const QString& protectedCode,
const Node * /* relative */,
- const QString& /* dirPath */)
+ const Location & /* location */)
{
static QRegExp globalInclude("#include +&lt;([^<>&]+)&gt;");
static QRegExp yHasTypeX("(?:^|\n *)([a-zA-Z_][a-zA-Z_0-9]*)"