@@ -1900,25 +1900,22 @@ static void findUsingDeclImports(const Entry *root)
1900
1900
if (md && md->protection ()!=Private)
1901
1901
{
1902
1902
// printf("found member %s\n",mni->memberName());
1903
- MemberDef *newMd = 0 ;
1903
+ QCString fileName = root->fileName ;
1904
+ if (fileName.isEmpty () && root->tagInfo ())
1904
1905
{
1905
- QCString fileName = root->fileName ;
1906
- if (fileName.isEmpty () && root->tagInfo ())
1907
- {
1908
- fileName = root->tagInfo ()->tagName ;
1909
- }
1910
- const ArgumentList &templAl = md->templateArguments ();
1911
- const ArgumentList &al = md->templateArguments ();
1912
- newMd = createMemberDef (
1913
- fileName,root->startLine ,root->startColumn ,
1914
- md->typeString (),memName,md->argsString (),
1915
- md->excpString (),root->protection ,root->virt ,
1916
- md->isStatic (),Member,md->memberType (),
1917
- templAl,al,root->metaData
1918
- );
1906
+ fileName = root->tagInfo ()->tagName ;
1919
1907
}
1908
+ const ArgumentList &templAl = md->templateArguments ();
1909
+ const ArgumentList &al = md->templateArguments ();
1910
+ std::unique_ptr<MemberDef> newMd { createMemberDef (
1911
+ fileName,root->startLine ,root->startColumn ,
1912
+ md->typeString (),memName,md->argsString (),
1913
+ md->excpString (),root->protection ,root->virt ,
1914
+ md->isStatic (),Member,md->memberType (),
1915
+ templAl,al,root->metaData
1916
+ ) };
1920
1917
newMd->setMemberClass (cd);
1921
- cd->insertMember (newMd);
1918
+ cd->insertMember (newMd. get () );
1922
1919
if (!root->doc .isEmpty () || !root->brief .isEmpty ())
1923
1920
{
1924
1921
newMd->setDocumentation (root->doc ,root->docFile ,root->docLine );
@@ -1946,6 +1943,8 @@ static void findUsingDeclImports(const Entry *root)
1946
1943
newMd->setMemberSpecifiers (md->getMemberSpecifiers ());
1947
1944
newMd->setLanguage (root->lang );
1948
1945
newMd->setId (root->id );
1946
+ MemberName *mn = Doxygen::memberNameLinkedMap->add (memName);
1947
+ mn->push_back (std::move (newMd));
1949
1948
}
1950
1949
}
1951
1950
}
@@ -9739,6 +9738,7 @@ void initDoxygen()
9739
9738
Doxygen::exampleSDict->setAutoDelete (TRUE );
9740
9739
Doxygen::memGrpInfoDict.setAutoDelete (TRUE );
9741
9740
Doxygen::tagDestinationDict.setAutoDelete (TRUE );
9741
+ Doxygen::namespaceAliasDict.setAutoDelete (TRUE );
9742
9742
Doxygen::dirRelations.setAutoDelete (TRUE );
9743
9743
Doxygen::genericsDict = new GenericsSDict;
9744
9744
Doxygen::indexList = new IndexList;
0 commit comments