From: Vadim Zeitlin Date: Mon, 6 Nov 2000 11:41:19 +0000 (+0000) Subject: small note about untyped lists X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/064998bf8b7b683d964f07a71b5c5d1d32565ef1 small note about untyped lists git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/list.tex b/docs/latex/wx/list.tex index 83c051a0d0..293b412d60 100644 --- a/docs/latex/wx/list.tex +++ b/docs/latex/wx/list.tex @@ -290,8 +290,12 @@ Returns the number of elements in the list. Allows the sorting of arbitrary lists by giving a function to compare two list elements. We use the system {\bf qsort} function -for the actual sorting process. The sort function receives pointers to wxObject pointers (wxObject **), -so be careful to dereference appropriately. +for the actual sorting process. + +If you use untyped wxList the sort function receives pointers to wxObject +pointers (wxObject **), so be careful to dereference appropriately - but, +of course, a better solution is to use list of appropriate type defined with +{\tt WX\_DECLARE\_LIST}. Example: