summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-08-24 09:05:08 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-08-24 09:05:08 (GMT)
commit8578e6bead66cae44b61214b3a43f776ed008362 (patch)
tree960824dc207870a6fbe6cc9cbfc294d9ea0a481f /src/doxygen.cpp
parent61e31b90708d501904665f85cfd3ea1b826b7afa (diff)
downloadDoxygen-8578e6bead66cae44b61214b3a43f776ed008362.zip
Doxygen-8578e6bead66cae44b61214b3a43f776ed008362.tar.gz
Doxygen-8578e6bead66cae44b61214b3a43f776ed008362.tar.bz2
issue #7973: C++ grouped functions in namespace have disapeard
- reverted some of the change that introduced the problem - fixed the original problem (#7216) in a different way
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index aa091f9..4b5c267 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -3680,17 +3680,18 @@ static void transferFunctionReferences()
{
MemberDef *mdef=0,*mdec=0;
/* find a matching function declaration and definition for this function */
- for (const auto &md : *mn)
+ for (const auto &md_p : *mn)
{
+ MemberDef *md = md_p.get();
if (md->isPrototype())
- mdec=md.get();
+ mdec=md;
else if (md->isVariable() && md->isExternal())
- mdec=md.get();
+ mdec=md;
if (md->isFunction() && !md->isStatic() && !md->isPrototype())
- mdef=md.get();
+ mdef=md;
else if (md->isVariable() && !md->isExternal() && !md->isStatic())
- mdef=md.get();
+ mdef=md;
if (mdef && mdec) break;
}