summaryrefslogtreecommitdiffstats
path: root/src/defargs.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-03-22 13:09:04 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-03-22 13:09:04 (GMT)
commit32093bcca82c7d3a4df4670f52340033e9f16b62 (patch)
tree2c07734b7eaae6b4d51735ebfd449116f98417a1 /src/defargs.l
parent95375152974fa7e0e4d4cec7007d942dd5e9615e (diff)
downloadDoxygen-32093bcca82c7d3a4df4670f52340033e9f16b62.zip
Doxygen-32093bcca82c7d3a4df4670f52340033e9f16b62.tar.gz
Doxygen-32093bcca82c7d3a4df4670f52340033e9f16b62.tar.bz2
Fix for rendering the template parameters of members of variadic template classes.
Diffstat (limited to 'src/defargs.l')
-rw-r--r--src/defargs.l12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/defargs.l b/src/defargs.l
index 7b8248c..40a77fb 100644
--- a/src/defargs.l
+++ b/src/defargs.l
@@ -370,18 +370,18 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
if (a->type.left(6)=="const ") sv=6;
else if (a->type.left(9)=="volatile ") sv=9;
- if (a->type.mid(sv)=="struct" ||
- a->type.mid(sv)=="union" ||
- a->type.mid(sv)=="class" ||
- a->type.mid(sv)=="typename" ||
- a->type=="const" ||
+ if (a->type.mid(sv,6)=="struct" ||
+ a->type.mid(sv,5)=="union" ||
+ a->type.mid(sv,5)=="class" ||
+ a->type.mid(sv,8)=="typename" ||
+ a->type=="const" ||
a->type=="volatile"
)
{
a->type = a->type + " " + a->name;
a->name.resize(0);
}
- //printf(" --> a->type='%s'\n",a->type.data());
+ //printf(" --> a->type='%s' a->name='%s'\n",a->type.data(),a->name.data());
}
else // assume only the type was specified, try to determine name later
{