summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-03 18:14:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-03 18:14:58 (GMT)
commite913d55b2e5a8e37ebd1ffd8fec730886a45fbda (patch)
tree44469ee55da18831ee8757f38a54fa6d9223cb53
parent8eca4c66338b96d1d7d7ef68ddf34b2274729d5b (diff)
downloadDoxygen-e913d55b2e5a8e37ebd1ffd8fec730886a45fbda.zip
Doxygen-e913d55b2e5a8e37ebd1ffd8fec730886a45fbda.tar.gz
Doxygen-e913d55b2e5a8e37ebd1ffd8fec730886a45fbda.tar.bz2
Bug 733938 - Explicit links using operator()() not generated.
-rw-r--r--src/util.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 7fff1b9..39dfb5c 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1838,7 +1838,7 @@ nextChar:
* Returns the position in the string where a function parameter list
* begins, or -1 if one is not found.
*/
-int findParameterList(const QString &name)
+int findParameterList(const QCString &name)
{
int pos=-1;
int templateDepth=0;
@@ -1875,7 +1875,8 @@ int findParameterList(const QString &name)
else
{
int bp = bracePos>0 ? name.findRev('(',bracePos-1) : -1;
- return bp==-1 ? bracePos : bp;
+ // bp test is to allow foo(int(&)[10]), but we need to make an exception for operator()
+ return bp==-1 || (bp>=8 && name.mid(bp-8,10)=="operator()") ? bracePos : bp;
}
}
} while (pos!=-1);
@@ -5365,10 +5366,10 @@ void createSubDirs(QDir &d)
int l1,l2;
for (l1=0;l1<16;l1++)
{
- d.mkdir(QString().sprintf("d%x",l1));
+ d.mkdir(QCString().sprintf("d%x",l1));
for (l2=0;l2<256;l2++)
{
- d.mkdir(QString().sprintf("d%x/d%02x",l1,l2));
+ d.mkdir(QCString().sprintf("d%x/d%02x",l1,l2));
}
}
}