summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2008-03-25 18:42:56 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2008-03-25 18:42:56 (GMT)
commitc6c19d2984bfd7265b6d5f82336c991ec35727da (patch)
treeac946941d432585f18f08ee563fec2f48faae1de /src/util.cpp
parent5b23c9573e3e7925987dc706c17357d54f517e40 (diff)
downloadDoxygen-c6c19d2984bfd7265b6d5f82336c991ec35727da.zip
Doxygen-c6c19d2984bfd7265b6d5f82336c991ec35727da.tar.gz
Doxygen-c6c19d2984bfd7265b6d5f82336c991ec35727da.tar.bz2
Release-1.5.5-20080325
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index db5eb08..a1281f9 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -4944,7 +4944,8 @@ QCString stripScope(const char *name)
count=1;
//printf("pos < = %d\n",p);
p--;
- while (p>=0)
+ bool foundMatch=false;
+ while (p>=0 && !foundMatch)
{
c=result.at(p--);
switch (c)
@@ -4962,6 +4963,7 @@ QCString stripScope(const char *name)
}
}
count--;
+ foundMatch = count==0;
break;
default:
//printf("c=%c count=%d\n",c,count);