Skip to content

Commit f09b3ef

Browse files
Fix discarding of Slice types during file index generation.
1 parent 14140de commit f09b3ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/filedef.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,25 +1335,25 @@ void FileDefImpl::insertClass(ClassDef *cd)
13351335
{
13361336
if (cd->isHidden()) return;
13371337

1338-
ClassLinkedRefMap &list = m_classes;
1338+
ClassLinkedRefMap *list = &m_classes;
13391339

13401340
if (Config_getBool(OPTIMIZE_OUTPUT_SLICE))
13411341
{
13421342
if (cd->compoundType()==ClassDef::Interface)
13431343
{
1344-
list = m_interfaces;
1344+
list = &m_interfaces;
13451345
}
13461346
else if (cd->compoundType()==ClassDef::Struct)
13471347
{
1348-
list = m_structs;
1348+
list = &m_structs;
13491349
}
13501350
else if (cd->compoundType()==ClassDef::Exception)
13511351
{
1352-
list = m_exceptions;
1352+
list = &m_exceptions;
13531353
}
13541354
}
13551355

1356-
list.add(cd->name(),cd);
1356+
list->add(cd->name(),cd);
13571357
}
13581358

13591359
void FileDefImpl::insertConcept(ConceptDef *cd)

0 commit comments

Comments
 (0)