From 556632f32234fae98b11f25386ebe9660cc587cf Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Fri, 17 Apr 2015 14:33:45 +0400 Subject: [PATCH] Fix warning in controls sample. Fix MSVS (performance) warning regarding converting int to bool. --- samples/controls/controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index a2350f332b..ce73f4a7c0 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -1288,7 +1288,7 @@ void MyPanel::OnChangeCheck(wxCommandEvent& event) { // check/uncheck all the items in the wxCheckListBox for (unsigned int n=0; n < m_listbox->GetCount(); n++) { - m_listbox->Check(n, event.GetInt()); + m_listbox->Check(n, event.GetInt() != 0); } }