diff options
author | David Hebbeker <david@hebbeker.info> | 2020-05-02 18:05:28 (GMT) |
---|---|---|
committer | David Hebbeker <david@hebbeker.info> | 2020-05-05 16:29:22 (GMT) |
commit | a0755075b7ce190c3eb2a48c9238f34240ea8c8d (patch) | |
tree | 94531c8d6c669f3bec0eb730278b5b7175ba75e6 /src/dirdef.h | |
parent | b5a2d0b03fe7de2570a9b6d326be7062b774c506 (diff) | |
download | Doxygen-a0755075b7ce190c3eb2a48c9238f34240ea8c8d.zip Doxygen-a0755075b7ce190c3eb2a48c9238f34240ea8c8d.tar.gz Doxygen-a0755075b7ce190c3eb2a48c9238f34240ea8c8d.tar.bz2 |
Copied implementation of `QGList::inSort()` to sortInDirList.
Diffstat (limited to 'src/dirdef.h')
-rw-r--r-- | src/dirdef.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dirdef.h b/src/dirdef.h index 52af2d8..0d73dd3 100644 --- a/src/dirdef.h +++ b/src/dirdef.h @@ -41,6 +41,13 @@ typedef std::deque<DirDef*> DirList; /** Compare referenced objects. */ bool compareDirDefs(const DirDef *item1,const DirDef *item2); +/** + * Sorts the list by the result of the compareDirDefs() function. + * @param list in which item to be inserted + * @param newItem to be inserted + */ +void sortInDirList(DirList &list, DirDef *const newItem); + /** A model of a directory symbol. */ class DirDef : virtual public Definition { |