small note about untyped lists

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-11-06 11:41:19 +00:00
parent a62da4c56f
commit 064998bf8b

View File

@ -290,8 +290,12 @@ Returns the number of elements in the list.
Allows the sorting of arbitrary lists by giving Allows the sorting of arbitrary lists by giving
a function to compare two list elements. We use the system {\bf qsort} function 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 **), for the actual sorting process.
so be careful to dereference appropriately.
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: Example: