]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for g++ < 3.4 after last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Dec 2006 13:21:41 +0000 (13:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Dec 2006 13:21:41 +0000 (13:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/datepick.cpp

index 12ee2f8fcdb7dd41e800e917304f17cd87390033..4295abc9c27a13004c62984f67a7c6395bb2adf2 100644 (file)
@@ -223,15 +223,13 @@ void DatePickerWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event))
 
 void DatePickerWidgetsPage::OnButtonSet(wxCommandEvent& WXUNUSED(event))
 {
-    long day = 0, month = 0, year = 0;
+    long day, month, year;
     if ( m_day->GetValue().ToLong(&day) &&
          m_month->GetValue().ToLong(&month) &&
          m_year->GetValue().ToLong(&year) )
     {
-        const wxDateTime someDay(wxDateTime::wxDateTime_t(day),
-                                 wxDateTime::Month(month),
-                                 year);
-        if(someDay.IsValid())
+        const wxDateTime someDay(day, wxDateTime::Month(month), year);
+        if ( someDay.IsValid() )
         {
             m_datePicker->SetValue(someDay);
         }