From dc3155f13ec45b21a7a8c35c33d5c5d85f6c9ba3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 28 Jan 2005 20:56:09 +0000 Subject: [PATCH] Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/widgets/slider.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/widgets/slider.cpp b/samples/widgets/slider.cpp index 0043c73819..9fc211cc63 100644 --- a/samples/widgets/slider.cpp +++ b/samples/widgets/slider.cpp @@ -211,7 +211,7 @@ SliderWidgetsPage::SliderWidgetsPage(wxBookCtrl *book, m_max = 100; m_chkVert = - m_chkInverse = + m_chkInverse = m_chkTicks = m_chkLabels = m_chkBothSides = (wxCheckBox *)NULL; @@ -539,7 +539,7 @@ void SliderWidgetsPage::OnUpdateUIMinMaxButton(wxUpdateUIEvent& event) void SliderWidgetsPage::OnUpdateUIResetButton(wxUpdateUIEvent& event) { event.Enable( m_chkVert->GetValue() || - m_chkInverse->GetValue() || + m_chkInverse->GetValue() || !m_chkTicks->GetValue() || !m_chkLabels->GetValue() || m_chkBothSides->GetValue() ); @@ -606,7 +606,7 @@ void SliderWidgetsPage::OnSlider(wxScrollEvent& event) static int s_numSliderEvents = 0; - wxLogMessage(wxT("Slider event #%d: %s (pos = %d, int value = %d)"), + wxLogMessage(wxT("Slider event #%d: %s (pos = %d, int value = %ld)"), s_numSliderEvents++, eventNames[index], event.GetPosition(), -- 2.49.0