From fdcff7183b035a27ff960f347b9975ab8e67a3cd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 9 Nov 2010 12:43:23 +0000 Subject: optimized ui:ListView::sort(): replaced bubblesort routine with std::list::sort() --- src/ui/listview.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ui/listview.h') 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: -- cgit v1.2.3