diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-08 15:48:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-08 15:48:53 (GMT) |
commit | ba6cf72c13b901c897e24f74f0ef8cfe3f1a4ea4 (patch) | |
tree | 016c6c50b68bdda0ed8c2b00cfe67dd02062bb0f | |
parent | a0c75e4c7a7aef5a1e8cec56a1f909eac44af3e9 (diff) | |
parent | a2f09d6aae1260822fecf2f0de9c1d3fbcc312e7 (diff) | |
download | Doxygen-ba6cf72c13b901c897e24f74f0ef8cfe3f1a4ea4.zip Doxygen-ba6cf72c13b901c897e24f74f0ef8cfe3f1a4ea4.tar.gz Doxygen-ba6cf72c13b901c897e24f74f0ef8cfe3f1a4ea4.tar.bz2 |
Merge pull request #7428 from RockinRoel/fix_scoped_enum_ref
Fix incorrect reference resolving of enum class values
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index fe3c65f..55dcc19 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -4283,7 +4283,7 @@ bool getDefs(const QCString &scName, int ni=namespaceName.findRev("::"); //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(); + bool sameNS = tmd && tmd->getNamespaceDef() && namespaceName.left(ni)==tmd->getNamespaceDef()->name() && namespaceName.mid(ni+2)==tmd->name(); //printf("notInNS=%d sameNS=%d\n",notInNS,sameNS); if (tmd && tmd->isStrong() && // C++11 enum class (notInNS || sameNS) && |