summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-11-22 12:00:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-11-22 12:00:47 (GMT)
commit200b828ead9f6bb5b2f6f99919837d5828a250e4 (patch)
tree124cf39b05148167a1b304fa84ca6cff81d5b515
parentc6e41226574c94a869ad0757b53027562ef189e1 (diff)
downloadDoxygen-200b828ead9f6bb5b2f6f99919837d5828a250e4.zip
Doxygen-200b828ead9f6bb5b2f6f99919837d5828a250e4.tar.gz
Doxygen-200b828ead9f6bb5b2f6f99919837d5828a250e4.tar.bz2
Bug 739863 - Regression: Base classes incorrect when using CRTP with default template parameter
-rw-r--r--src/util.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index acf0063..64e63c8 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6027,10 +6027,11 @@ QCString substituteTemplateArgumentsInString(
// for its template instance argument.
bool found=FALSE;
for (formAli.toFirst();
- (formArg=formAli.current()) && !found && (actArg=actAli.current());
+ (formArg=formAli.current()) && !found;
++formAli,++actAli
)
{
+ actArg = actAli.current();
if (formArg->type.left(6)=="class " && formArg->name.isEmpty())
{
formArg->name = formArg->type.mid(6);
@@ -6046,7 +6047,7 @@ QCString substituteTemplateArgumentsInString(
//printf("n=%s formArg->type='%s' formArg->name='%s' formArg->defval='%s'\n",
// n.data(),formArg->type.data(),formArg->name.data(),formArg->defval.data());
//printf(">> formArg->name='%s' actArg->type='%s' actArg->name='%s'\n",
- // formArg->name.data(),actArg->type.data(),actArg->name.data()
+ // formArg->name.data(),actArg ? actArg->type.data() : "",actArg ? actArg->name.data() : ""
// );
if (formArg->name==n && actArg && !actArg->type.isEmpty()) // base class is a template argument
{