From b02f1c862d1a3fcd714aef37e67decaa9d67b611 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Fri, 21 Mar 2008 19:06:04 +0000 Subject: [PATCH] some more comments about wxSortedArrayString::Sort git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/arrstr.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/interface/arrstr.h b/interface/arrstr.h index ab16a2dbcb..a5c24c3493 100644 --- a/interface/arrstr.h +++ b/interface/arrstr.h @@ -321,19 +321,16 @@ public: void Insert(const wxString& str, size_t nIndex, size_t copies = 1); + //@{ /** @warning this function should not be used with sorted array because it could break the order of items and, for example, subsequent calls to Index() - would then not work! + would then not work! Also, sorting a wxSortedArrayString doesn't make + sense because its elements are always already sorted. */ void Sort(bool reverseOrder = false); - - /** - @warning this function should not be used with sorted array because - it could break the order of items and, for example, subsequent - calls to Index() would then not work! - */ void Sort(CompareFunction compareFunction); + //@} }; -- 2.45.2