diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-09 12:43:23 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-09 12:43:23 +0000 |
commit | fdcff7183b035a27ff960f347b9975ab8e67a3cd (patch) | |
tree | 03b009c44804d726a8687ad2f622055e28e0f809 /src/ui/listview.h | |
parent | baf6ad1f48ef08187f50247115c09a3612ebeec3 (diff) |
optimized ui:ListView::sort(): replaced bubblesort routine with std::list::sort()
Diffstat (limited to 'src/ui/listview.h')
-rw-r--r-- | src/ui/listview.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/listview.h b/src/ui/listview.h index f752ac2..81dd5a5 100644 --- a/src/ui/listview.h +++ b/src/ui/listview.h @@ -59,7 +59,11 @@ public: /// set selection to nothing void deselect(); - /// sort child ListItems according to their sortkey + /** + * @brief sort child ListItems according to their sortkey + * Sort will fail with an assert error if the ListView + * contains any non-ListItem child widgets + */ void sort(); protected: |