]> git.saurik.com Git - wxWidgets.git/commitdiff
restored variabes initialization in OnButtonSet() to avoid spurious MSVC warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Dec 2006 13:30:27 +0000 (13:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Dec 2006 13:30:27 +0000 (13:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/datepick.cpp

index 86b809a4416c1cf5081c18ea3762d67973c206ad..e553c3581f967fae39b313d79516e1eb2403dc5c 100644 (file)
@@ -223,7 +223,9 @@ void DatePickerWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event))
 
 void DatePickerWidgetsPage::OnButtonSet(wxCommandEvent& WXUNUSED(event))
 {
-    long day, month, year;
+    long day = 0,
+         month = 0,
+         year = 0;
     if ( m_day->GetValue().ToLong(&day) &&
          m_month->GetValue().ToLong(&month) &&
          m_year->GetValue().ToLong(&year) )