From da2fd5acd884129f58a5b394994ace8c22b55b6d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Jan 2001 19:42:22 +0000 Subject: [PATCH] added wxArrayString::RemoveAt() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 1 + src/common/filename.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wx/string.h b/include/wx/string.h index bf49ba5cda..bb7bf7071e 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -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 diff --git a/src/common/filename.cpp b/src/common/filename.cpp index ef07caccef..91318e43bf 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -249,7 +249,7 @@ bool wxFileName::Normalize(wxPathNormalize flags, { curDir.AssignDir(wxGetUserHome(dir.c_str() + 1)); - dirs.Remove(0u); + dirs.RemoveAt(0u); } } } -- 2.47.2