summaryrefslogtreecommitdiffstats
path: root/src/dirdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-05-10 13:32:08 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-05-10 13:32:08 (GMT)
commit1743f2717fbcb81472a29e4cac0d2fb018e7f5fa (patch)
treeb4bac19846f0f0afdbbac93632cc910b3c5febbe /src/dirdef.cpp
parentab7595c96e83af7ddfa00ff81598afcb88a724a3 (diff)
downloadDoxygen-1743f2717fbcb81472a29e4cac0d2fb018e7f5fa.zip
Doxygen-1743f2717fbcb81472a29e4cac0d2fb018e7f5fa.tar.gz
Doxygen-1743f2717fbcb81472a29e4cac0d2fb018e7f5fa.tar.bz2
Did a bit of restructuring and fixed some compiler warnings
Diffstat (limited to 'src/dirdef.cpp')
-rw-r--r--src/dirdef.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp
index 597875f..0f8f04b 100644
--- a/src/dirdef.cpp
+++ b/src/dirdef.cpp
@@ -160,7 +160,7 @@ void DirDefImpl::addFile(FileDef *fd)
void DirDefImpl::sort()
{
- std::sort(m_subdirs.begin(), m_subdirs.end(), &compareDirDefs);
+ std::sort(m_subdirs.begin(), m_subdirs.end(), compareDirDefs);
m_fileList->sort();
}
@@ -1098,12 +1098,3 @@ bool compareDirDefs(const DirDef *item1, const DirDef *item2)
return qstricmp(item1->shortName(),item2->shortName()) < 0;
}
-void sortInDirList(DirList& list, DirDef *const newItem)
-{
- auto potentialSuccessor = list.begin();
- while (potentialSuccessor != list.cend() && compareDirDefs(*potentialSuccessor, newItem))
- {
- potentialSuccessor++;
- }
- list.insert(potentialSuccessor, newItem);
-}