From af7bb44ca4f7fd94954193e2bbef80b5f188edbb Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Tue, 8 Feb 2005 03:16:09 +0000 Subject: [PATCH] Patch [ 1118343 ] Use wxTextValidator::SetIncludes in wxDatePickerCtrlGeneric git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datectlg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.45.2