Commit a1df9c36 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fix potential assert when members of base class were not yet counted

parent fda84270
...@@ -4102,11 +4102,13 @@ int ClassDef::countMemberDeclarations(MemberListType lt,ClassDef *inheritedFrom, ...@@ -4102,11 +4102,13 @@ int ClassDef::countMemberDeclarations(MemberListType lt,ClassDef *inheritedFrom,
{ {
if (ml) if (ml)
{ {
ml->countDecMembers();
count+=ml->numDecMembers(); count+=ml->numDecMembers();
//printf("-> ml=%d\n",ml->numDecMembers()); //printf("-> ml=%d\n",ml->numDecMembers());
} }
if (ml2) if (ml2)
{ {
ml2->countDecMembers();
count+=ml2->numDecMembers(); count+=ml2->numDecMembers();
//printf("-> ml2=%d\n",ml2->numDecMembers()); //printf("-> ml2=%d\n",ml2->numDecMembers());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment