diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-12-24 12:26:46 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-12-24 16:10:05 (GMT) |
commit | f5aa5e7b8306f3fe438127396515d36e1482e6ae (patch) | |
tree | a825accce2e8240357adb5e1d6f61602a07a6d6c /src/util.cpp | |
parent | f20c2bab01307bb40eb4522e46df2d0a8dfe31a9 (diff) | |
download | Doxygen-f5aa5e7b8306f3fe438127396515d36e1482e6ae.zip Doxygen-f5aa5e7b8306f3fe438127396515d36e1482e6ae.tar.gz Doxygen-f5aa5e7b8306f3fe438127396515d36e1482e6ae.tar.bz2 |
Bug 712819 - Some external namespaces appear in list despite having ALLEXTERNALS = NO
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index 4f33ab2..545cd43 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -218,6 +218,7 @@ QCString stripAnonymousNamespaceScope(const QCString &s) { int i,p=0,l; QCString newScope; + int sl = s.length(); while ((i=getScopeFragment(s,p,&l))!=-1) { //printf("Scope fragment %s\n",s.mid(i,l).data()); @@ -229,10 +230,10 @@ QCString stripAnonymousNamespaceScope(const QCString &s) newScope+=s.mid(i,l); } } - else + else if (i<sl) { if (!newScope.isEmpty()) newScope+="::"; - newScope+=s.right(s.length()-i); + newScope+=s.right(sl-i); goto done; } p=i+l; |