]> git.saurik.com Git - wxWidgets.git/commitdiff
dont use wxChar* arguments in wxDatePickerCtrlGeneric API
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 28 Jun 2007 17:03:42 +0000 (17:03 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 28 Jun 2007 17:03:42 +0000 (17:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/datectrl.h
src/generic/datectlg.cpp

index e6b97d405d41823cac3cd70f120f2bfd0593b4cc..e7e9ffb36b36fa51e2f7e9ca84f96ece02dedc93 100644 (file)
@@ -58,7 +58,7 @@ public:
                       const wxDateTime& upperdate = wxDefaultDateTime);
 
     // extra methods available only in this (generic) implementation
-    bool SetFormat(const wxChar *fmt);
+    bool SetFormat(const wxString& fmt);
     wxCalendarCtrl *GetCalendar() const { return m_cal; }
 
 
index cac86b2505b693281315b1f801b2cd0cedad02a7..6527a991b64b17b482d919d0c17c4031e09327b5 100644 (file)
@@ -113,7 +113,7 @@ public:
 
         wxPoint yearPosition = yearControl->GetPosition();
 
-        SetFormat(wxT("%x"));
+        SetFormat("%x");
 
         width = yearPosition.x + yearSize.x+2+CALBORDER/2;
         if (width < calSize.x-4)
@@ -259,7 +259,7 @@ private:
         return m_combo->GetParent()->HasFlag(flag);
     }
 
-    bool SetFormat(const wxChar *fmt)
+    bool SetFormat(const wxString& fmt)
     {
         m_format.clear();