From: Vadim Zeitlin Date: Tue, 20 Nov 2001 20:46:03 +0000 (+0000) Subject: applied patch fixing compilation without wxUSE_TIMEDATE and another warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/364f80ef965c4283d7a7ed952aad3b932e0b2113 applied patch fixing compilation without wxUSE_TIMEDATE and another warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/typetest/typetest.cpp b/samples/typetest/typetest.cpp index 5ffc72fd51..347d1d7bab 100644 --- a/samples/typetest/typetest.cpp +++ b/samples/typetest/typetest.cpp @@ -60,8 +60,8 @@ IMPLEMENT_DYNAMIC_CLASS (MyApp, wxApp) BEGIN_EVENT_TABLE(MyApp, wxApp) #if wxUSE_TIMEDATE EVT_MENU(TYPES_DATE, MyApp::DoDateDemo) -#endif // wxUSE_TIMEDATE EVT_MENU(TYPES_TIME, MyApp::DoTimeDemo) +#endif // wxUSE_TIMEDATE EVT_MENU(TYPES_VARIANT, MyApp::DoVariantDemo) EVT_MENU(TYPES_BYTEORDER, MyApp::DoByteOrderDemo) #if wxUSE_UNICODE @@ -234,7 +234,7 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event)) file_output.SeekO( 0 ); wxDataOutputStream data_output( buf_output ); - wxInt16 i16 = (short)0xFFFF; + wxInt16 i16 = (unsigned short)0xFFFF; tmp.Printf( _T("Signed int16: %d\n"), (int)i16 ); textCtrl.WriteText( tmp ); data_output.Write16( i16 ); @@ -851,6 +851,8 @@ void MyApp::DoByteOrderDemo(wxCommandEvent& WXUNUSED(event)) textCtrl.WriteText( text ); } +#if wxUSE_TIMEDATE + void MyApp::DoTimeDemo(wxCommandEvent& WXUNUSED(event)) { wxTextCtrl& textCtrl = * GetTextCtrl(); @@ -861,8 +863,6 @@ void MyApp::DoTimeDemo(wxCommandEvent& WXUNUSED(event)) textCtrl << "It is now " << (wxString) now << "\n"; } -#if wxUSE_TIMEDATE - void MyApp::DoDateDemo(wxCommandEvent& WXUNUSED(event)) { wxTextCtrl& textCtrl = * GetTextCtrl();