summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-25 18:42:56 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-25 18:42:56 (GMT)
commit238c63a16c820818ba71ae256f3f50eed2a94cf2 (patch)
treeac946941d432585f18f08ee563fec2f48faae1de /src/util.cpp
parentf630007a569f8342ada7b2ecf06692353ddbce3c (diff)
downloadDoxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.zip
Doxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.tar.gz
Doxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.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);