diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 0fd341b..f207430 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -4279,7 +4279,8 @@ bool getDefs(const QCString &scName, MemberDef *tmd = mmd->getEnumScope(); //printf("try member %s tmd=%s\n",mmd->name().data(),tmd?tmd->name().data():"<none>"); int ni=namespaceName.findRev("::"); - bool notInNS = tmd && ni==-1 && tmd->getNamespaceDef()==0; + //printf("namespaceName=%s ni=%d\n",namespaceName.data(),ni); + bool notInNS = tmd && ni==-1 && tmd->getNamespaceDef()==0 && (mScope.isEmpty() || mScope==tmd->name()); bool sameNS = tmd && tmd->getNamespaceDef() && namespaceName.left(ni)==tmd->getNamespaceDef()->name(); //printf("notInNS=%d sameNS=%d\n",notInNS,sameNS); if (tmd && tmd->isStrong() && // C++11 enum class |