summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 748fb9a..15a95f5 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -2248,7 +2248,16 @@ bool MemberDef::isConstructor() const
}
else // for other languages
{
- return name()==classDef->localName();
+ QCString locName = classDef->localName();
+ int i=locName.find('<');
+ if (i==-1) // not a template class
+ {
+ return name()==locName;
+ }
+ else
+ {
+ return name()==locName.left(i);
+ }
}
}
else