diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2016-07-31 10:47:33 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2016-07-31 10:47:33 (GMT) |
commit | f37c0e58c47c43e96417d4dcf1559e3f9d1b323b (patch) | |
tree | 0a1d5c9be7f3c9dd4306f525df2d04ddf453f8c5 /src/membergroup.cpp | |
parent | 0d9fc8dc45de49a050b1d13f03ff9f4713f736fb (diff) | |
download | Doxygen-f37c0e58c47c43e96417d4dcf1559e3f9d1b323b.zip Doxygen-f37c0e58c47c43e96417d4dcf1559e3f9d1b323b.tar.gz Doxygen-f37c0e58c47c43e96417d4dcf1559e3f9d1b323b.tar.bz2 |
Bug 768830 - Doxygen segfault (return code 134) when parsing a c++ enum class contained in a class
Diffstat (limited to 'src/membergroup.cpp')
-rw-r--r-- | src/membergroup.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/membergroup.cpp b/src/membergroup.cpp index cbda94d..aaa504f 100644 --- a/src/membergroup.cpp +++ b/src/membergroup.cpp @@ -147,7 +147,8 @@ void MemberGroup::addGroupedInheritedMembers(OutputList &ol,ClassDef *cd, for (li.toFirst();(md=li.current());++li) { //printf("matching %d == %d\n",lt,md->getSectionList(m_parent)->listType()); - if (lt==md->getSectionList(m_parent)->listType()) + MemberList *ml = md->getSectionList(m_parent); + if (ml && lt==ml->listType()) { MemberList ml(lt); ml.append(md); @@ -165,7 +166,8 @@ int MemberGroup::countGroupedInheritedMembers(MemberListType lt) for (li.toFirst();(md=li.current());++li) { //printf("matching %d == %d\n",lt,md->getSectionList(m_parent)->listType()); - if (lt==md->getSectionList(m_parent)->listType()) + MemberList *ml = md->getSectionList(m_parent); + if (ml && lt==ml->listType()) { count++; } |