summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-07 20:06:33 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-07 20:06:33 (GMT)
commitc506514a32991918e06ec75ebaad3f6eaea1dc9b (patch)
tree1c140ba4403dd2376c1606c30fffde0b3dd912c5 /src/util.cpp
parent7bcd67f4affa7c3ce2ba6f652c893488952396a7 (diff)
downloadDoxygen-c506514a32991918e06ec75ebaad3f6eaea1dc9b.zip
Doxygen-c506514a32991918e06ec75ebaad3f6eaea1dc9b.tar.gz
Doxygen-c506514a32991918e06ec75ebaad3f6eaea1dc9b.tar.bz2
Fix potential hangup when merging scopes
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 819903c..a1f40af 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6550,7 +6550,7 @@ QCString mergeScopes(const QCString &leftScope,const QCString &rightScope)
// case leftScope=="A::B" rightScope=="B::C" => result = "A::B::C"
// case leftScope=="A::B" rightScope=="B" => result = "A::B"
bool found=FALSE;
- while ((i=leftScope.findRev("::",p))!=-1)
+ while ((i=leftScope.findRev("::",p))>0)
{
if (leftScopeMatch(rightScope,leftScope.right(leftScope.length()-i-2)))
{