Skip to content

Commit a5f7791

Browse files
committed
issue #10835 Two relates group generates warning: found multiple \relates, \relatesalso or \memberof commands in a comment block, using last definition
Not only the member group id field should be reset but also the relates field otherwise a false positivve warning is given.
1 parent e2b9046 commit a5f7791

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/docgroup.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ void DocGroup::close(Entry *e,const QCString &fileName,int line,bool foundInline
169169
m_memberGroupId=DOX_NOGROUP;
170170
m_memberGroupRelates.clear();
171171
m_memberGroupDocs.clear();
172-
if (!foundInline) e->mGrpId=DOX_NOGROUP;
172+
if (!foundInline)
173+
{
174+
e->mGrpId=DOX_NOGROUP;
175+
e->relates="";
176+
}
173177
//printf("new group id=%d\n",m_memberGroupId);
174178
}
175179
else if (!m_autoGroupStack.empty()) // end of auto group

0 commit comments

Comments
 (0)