summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Hebbeker <david@hebbeker.info>2020-04-26 10:16:05 (GMT)
committerDavid Hebbeker <david@hebbeker.info>2020-05-05 16:29:22 (GMT)
commitb5a2d0b03fe7de2570a9b6d326be7062b774c506 (patch)
treeb2732e25fbb17d18e4525375b1778ea653dc4e42
parent53373a57b8d548c9c99a46cb723219c62a69b813 (diff)
downloadDoxygen-b5a2d0b03fe7de2570a9b6d326be7062b774c506.zip
Doxygen-b5a2d0b03fe7de2570a9b6d326be7062b774c506.tar.gz
Doxygen-b5a2d0b03fe7de2570a9b6d326be7062b774c506.tar.bz2
Replaced calls to DirDef::append() to DirDef::push_back().
There is no inSort() in current QList or std container. Thus it was replaced by the sequence of adding an item and sorting the list afterwards. (cherry picked from commit 91370bf84ac299fcb773e1b9d81e8f5c56da0725)
-rw-r--r--src/dirdef.cpp2
-rw-r--r--src/groupdef.cpp7
2 files changed, 6 insertions, 3 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp
index b41dc01..a89a9e6 100644
--- a/src/dirdef.cpp
+++ b/src/dirdef.cpp
@@ -142,7 +142,7 @@ bool DirDefImpl::isLinkable() const
void DirDefImpl::addSubDir(DirDef *subdir)
{
- m_subdirs.append(subdir);
+ m_subdirs.push_back(subdir);
subdir->setOuterScope(this);
subdir->setParent(this);
}
diff --git a/src/groupdef.cpp b/src/groupdef.cpp
index bff97e0..5af1cbd 100644
--- a/src/groupdef.cpp
+++ b/src/groupdef.cpp
@@ -331,9 +331,12 @@ void GroupDefImpl::addDir(const DirDef *def)
{
if (def->isHidden()) return;
if (Config_getBool(SORT_BRIEF_DOCS))
- m_dirList->inSort(def);
+ {
+ m_dirList->push_back(def);
+ m_dirList->sort();
+ }
else
- m_dirList->append(def);
+ m_dirList->push_back(def);
}
void GroupDefImpl::addPage(PageDef *def)