Warning fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2006-04-28 17:07:14 +00:00
parent 670f993563
commit 33cf9a1922
4 changed files with 8 additions and 8 deletions

View File

@ -1498,7 +1498,7 @@ void MyPanel::OnSpinCtrl(wxSpinEvent& event)
if ( m_spinctrl )
{
wxString s;
s.Printf( _T("Spin ctrl changed: now %d (from event: %ld)\n"),
s.Printf( _T("Spin ctrl changed: now %d (from event: %d)\n"),
m_spinctrl->GetValue(), event.GetInt() );
m_text->AppendText(s);
}
@ -1509,7 +1509,7 @@ void MyPanel::OnSpinCtrlUp(wxSpinEvent& event)
if ( m_spinctrl )
{
m_text->AppendText( wxString::Format(
_T("Spin up: %d (from event: %ld)\n"),
_T("Spin up: %d (from event: %d)\n"),
m_spinctrl->GetValue(), event.GetInt() ) );
}
}
@ -1519,7 +1519,7 @@ void MyPanel::OnSpinCtrlDown(wxSpinEvent& event)
if ( m_spinctrl )
{
m_text->AppendText( wxString::Format(
_T("Spin down: %d (from event: %ld)\n"),
_T("Spin down: %d (from event: %d)\n"),
m_spinctrl->GetValue(), event.GetInt() ) );
}
}

View File

@ -516,12 +516,12 @@ void ListboxWidgetsPage::OnListbox(wxCommandEvent& event)
void ListboxWidgetsPage::OnListboxDClick(wxCommandEvent& event)
{
wxLogMessage( _T("Listbox item %ld double clicked"), event.GetInt() );
wxLogMessage( _T("Listbox item %d double clicked"), event.GetInt() );
}
void ListboxWidgetsPage::OnCheckListbox(wxCommandEvent& event)
{
wxLogMessage( _T("Listbox item %ld toggled"), event.GetInt() );
wxLogMessage( _T("Listbox item %d toggled"), event.GetInt() );
}
void ListboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))

View File

@ -607,7 +607,7 @@ void SliderWidgetsPage::OnSlider(wxScrollEvent& event)
static int s_numSliderEvents = 0;
wxLogMessage(wxT("Slider event #%d: %s (pos = %d, int value = %ld)"),
wxLogMessage(wxT("Slider event #%d: %s (pos = %d, int value = %d)"),
s_numSliderEvents++,
eventNames[index],
event.GetPosition(),

View File

@ -409,13 +409,13 @@ void SpinBtnWidgetsPage::OnSpinBtn(wxSpinEvent& event)
void SpinBtnWidgetsPage::OnSpinBtnUp(wxSpinEvent& event)
{
wxLogMessage( _T("Spin button value incremented, will be %ld (was %d)"),
wxLogMessage( _T("Spin button value incremented, will be %d (was %d)"),
event.GetInt(), m_spinbtn->GetValue() );
}
void SpinBtnWidgetsPage::OnSpinBtnDown(wxSpinEvent& event)
{
wxLogMessage( _T("Spin button value decremented, will be %ld (was %d)"),
wxLogMessage( _T("Spin button value decremented, will be %d (was %d)"),
event.GetInt(), m_spinbtn->GetValue() );
}