X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d11c9d86b66883101e4d77f1b86886f185f79083..c29c95fe24973b94fd724db767193171ca7c513d:/interface/wx/arrstr.h?ds=sidebyside diff --git a/interface/wx/arrstr.h b/interface/wx/arrstr.h index 46d3fed6b6..3708c54635 100644 --- a/interface/wx/arrstr.h +++ b/interface/wx/arrstr.h @@ -3,7 +3,7 @@ // Purpose: interface of wxArrayString // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -279,10 +279,12 @@ class wxSortedArrayString : public wxArrayString public: /** - Copy constructor. Note that when an array is assigned to a sorted array, - its contents is automatically sorted during construction. + Conversion constructor. + + Constructs a sorted array with the same contents as the (possibly + unsorted) "array" argument. */ - wxArrayString(const wxArrayString& array); + wxSortedArrayString(const wxArrayString& array); /** @copydoc wxArrayString::Add() @@ -308,6 +310,8 @@ public: @warning This function should not be used with sorted arrays because it could break the order of items and, for example, subsequent calls to Index() would then not work! + + @warning In STL mode, Insert is private and simply invokes wxFAIL_MSG. */ void Insert(const wxString& str, size_t nIndex, size_t copies = 1); @@ -318,6 +322,8 @@ public: break the order of items and, for example, subsequent calls to Index() would then not work! Also, sorting a wxSortedArrayString doesn't make sense because its elements are always already sorted. + + @warning In STL mode, Sort is private and simply invokes wxFAIL_MSG. */ void Sort(bool reverseOrder = false); void Sort(CompareFunction compareFunction);