From: Ryan Norton Date: Tue, 8 Feb 2005 03:16:09 +0000 (+0000) Subject: Patch [ 1118343 ] Use wxTextValidator::SetIncludes in wxDatePickerCtrlGeneric X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af7bb44ca4f7fd94954193e2bbef80b5f188edbb?ds=sidebyside;hp=8f98c6c007769184f28dfb9dcd97075bd0efeddc Patch [ 1118343 ] Use wxTextValidator::SetIncludes in wxDatePickerCtrlGeneric git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 4b9fdfeeb1..587506f537 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -48,6 +48,7 @@ #include "wx/dateevt.h" #include "wx/generic/datectrl.h" +#include "wx/arrstr.h" #include "wx/calctrl.h" #include "wx/popupwin.h" #include "wx/renderer.h" @@ -392,7 +393,7 @@ bool wxDatePickerCtrlGeneric::SetFormat(const wxChar *fmt) if (m_txt) { - wxStringList valList; + wxArrayString valList; wxChar c; for (c='0'; c <= '9'; c++) valList.Add(wxString(c, 1)); @@ -405,7 +406,7 @@ bool wxDatePickerCtrlGeneric::SetFormat(const wxChar *fmt) valList.Add(wxString(*p++, 1)); } wxTextValidator tv(wxFILTER_INCLUDE_CHAR_LIST); - tv.SetIncludeList(valList); + tv.SetIncludes(valList); m_txt->SetValidator(tv);