X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8941fa8806ad22825b13367a0b48f889f177fe90..c7fa61e5ec4ac323c865adeb01e0c9f232faae20:/samples/widgets/checkbox.cpp diff --git a/samples/widgets/checkbox.cpp b/samples/widgets/checkbox.cpp index 8b242623b2..4cd2da6f66 100644 --- a/samples/widgets/checkbox.cpp +++ b/samples/widgets/checkbox.cpp @@ -29,6 +29,7 @@ #include "wx/app.h" #include "wx/log.h" + #include "wx/bitmap.h" #include "wx/button.h" #include "wx/checkbox.h" @@ -147,8 +148,8 @@ void CheckBoxWidgetsPage::OnCheckBox(wxCommandEvent& event) }; wxCheckBoxState state = (wxCheckBoxState) event.GetInt(); - wxCHECK_RET( (state >= 0) && (state < WXSIZEOF(stateNames)), - "event.GetInt() returned an invalid wxCheckBoxState" ); + wxCHECK_RET( (state >= (wxCheckBoxState)0) && (state < (wxCheckBoxState)WXSIZEOF(stateNames)), + _T("event.GetInt() returned an invalid wxCheckBoxState") ); wxLogMessage(wxT("Checkbox now set to state: %s"), stateNames[state].c_str());