Fix warning in controls sample.

Fix MSVS (performance) warning regarding converting int to bool.
This commit is contained in:
Dimitri Schoolwerth
2015-04-17 14:33:45 +04:00
parent a1902c1456
commit 556632f322

View File

@@ -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);
}
}