summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
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);