]> git.saurik.com Git - wxWidgets.git/commitdiff
small note about untyped lists
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Nov 2000 11:41:19 +0000 (11:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Nov 2000 11:41:19 +0000 (11:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/list.tex

index 83c051a0d0d9536c70786337fc9187bd15b1db35..293b412d60332f49598d7295c324cbaff647b0d3 100644 (file)
@@ -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: