]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxArrayString::RemoveAt()
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Jan 2001 19:42:22 +0000 (19:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Jan 2001 19:42:22 +0000 (19:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h
src/common/filename.cpp

index bf49ba5cda175516b27aedef50d9352c7a422c5b..bb7bf7071e2fb6857a6a7bd866aabd94d51f5a91 100644 (file)
@@ -1012,6 +1012,7 @@ public:
   void Remove(const wxChar *sz);
     // remove item by index
   void Remove(size_t nIndex);
+  void RemoveAt(size_t nIndex) { Remove(nIndex); }
 
   // sorting
     // sort array elements in alphabetical order (or reversed alphabetical
index ef07caccef375db9fe4ac0e23c06f132233c98e3..91318e43bf2bdfe9b481b5d58c8e8620f067be7d 100644 (file)
@@ -249,7 +249,7 @@ bool wxFileName::Normalize(wxPathNormalize flags,
             {
                 curDir.AssignDir(wxGetUserHome(dir.c_str() + 1));
 
-                dirs.Remove(0u);
+                dirs.RemoveAt(0u);
             }
         }
     }