From f5aa5e7b8306f3fe438127396515d36e1482e6ae Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 24 Dec 2013 13:26:46 +0100 Subject: Bug 712819 - Some external namespaces appear in list despite having ALLEXTERNALS = NO --- src/doxygen.cpp | 4 ++++ src/util.cpp | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/doxygen.cpp b/src/doxygen.cpp index f497c01..41fca96 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -1836,6 +1836,10 @@ static void findUsingDirectives(EntryNav *rootNav) //printf("Found using directive %s at line %d of %s\n", // root->name.data(),root->startLine,root->fileName.data()); QCString name=substitute(root->name,".","::"); + if (name.right(2)=="::") + { + name=name.left(name.length()-2); + } if (!name.isEmpty()) { NamespaceDef *usingNd = 0; 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