summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-04 19:58:07 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-04 19:58:07 (GMT)
commitf194a3165042428359ec5b5af7e9bad7878c0536 (patch)
treed7e8468d123c230295ddf4b799d2d3dfa8f6d288 /src
parent62f8c5346b2f3ea492404ae85942a0de4b091c71 (diff)
downloadDoxygen-f194a3165042428359ec5b5af7e9bad7878c0536.zip
Doxygen-f194a3165042428359ec5b5af7e9bad7878c0536.tar.gz
Doxygen-f194a3165042428359ec5b5af7e9bad7878c0536.tar.bz2
Further simplified the fix
Diffstat (limited to 'src')
-rw-r--r--src/groupdef.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp
index 9df3ae1..e543d16 100644
--- a/src/groupdef.cpp
+++ b/src/groupdef.cpp
@@ -165,13 +165,12 @@ bool GroupDef::addClass(const ClassDef *cd)
if (i==-1) i=qn.find('.');
bool found=FALSE;
//printf("i=%d\n",i);
- if (i!=-1)
+ if (i>0)
{
// add nested classes (e.g. A::B, A::C) after their parent (A) in
// order of insertion
QCString scope = qn.left(i);
- int j=-1;
- if (!scope.isEmpty()) j=classSDict->findAt(scope);
+ int j=classSDict->findAt(scope);
if (j!=-1)
{
while (j<(int)classSDict->count() &&