]> git.saurik.com Git - wxWidgets.git/commitdiff
Patch [ 1118343 ] Use wxTextValidator::SetIncludes in wxDatePickerCtrlGeneric
authorRyan Norton <wxprojects@comcast.net>
Tue, 8 Feb 2005 03:16:09 +0000 (03:16 +0000)
committerRyan Norton <wxprojects@comcast.net>
Tue, 8 Feb 2005 03:16:09 +0000 (03:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datectlg.cpp

index 4b9fdfeeb1a250de8c0adb455867d5b4a686f230..587506f537d745ac759a30af11e31883c9443b03 100644 (file)
@@ -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);