summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 46147fc..8be2217 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -417,8 +417,9 @@ void Definition::addSectionsToDefinition(QList<SectionInfo> *anchorList)
{
if (!anchorList) return;
//printf("%s: addSectionsToDefinition(%d)\n",name().data(),anchorList->count());
- SectionInfo *si=anchorList->first();
- while (si)
+ QListIterator<SectionInfo> it(*anchorList);
+ SectionInfo *si;
+ for (;(si=it.current());++it)
{
//printf("Add section `%s' to definition `%s'\n",
// si->label.data(),name().data());
@@ -429,7 +430,7 @@ void Definition::addSectionsToDefinition(QList<SectionInfo> *anchorList)
gsi = new SectionInfo(*si);
Doxygen::sectionDict->append(si->label,gsi);
}
- if (m_impl->sectionDict==0)
+ if (m_impl->sectionDict==0)
{
m_impl->sectionDict = new SectionDict(17);
}
@@ -438,7 +439,6 @@ void Definition::addSectionsToDefinition(QList<SectionInfo> *anchorList)
m_impl->sectionDict->append(gsi->label,gsi);
gsi->definition = this;
}
- si=anchorList->next();
}
}