]> git.saurik.com Git - wxWidgets.git/commitdiff
fix Remove() argument in the example (closes #10521)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Feb 2009 18:59:03 +0000 (18:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 26 Feb 2009 18:59:03 +0000 (18:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dynarray.h

index 84c4e16e0ab80ed3ca42d453ec983f22fdd2ea0b..6001afe7454bd485705d3b8d00ea6d5c6bb21775 100644 (file)
@@ -546,12 +546,14 @@ public:
 
         @code
         T *item = array[n];
+        array.Remove(item);
         delete item;
-        array.Remove(n);
         @endcode
 
         See also WX_CLEAR_ARRAY() macro which deletes all elements of a wxArray
         (supposed to contain pointers).
+
+        @see RemoveAt()
     */
     void Remove(T item);