]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/checkbox.cpp
Removed unused variable.
[wxWidgets.git] / samples / widgets / checkbox.cpp
index fe14ea96573f6a95912c37d65b6e2df5492703ed..34295c7ee8d631c5eb91044ae012e69c2018cd76 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Program:     wxWindows Widgets Sample
+// Program:     wxWidgets Widgets Sample
 // Name:        checkbox.cpp
 // Purpose:     Part of the widgets sample showing wxCheckBox
 // Author:      Dimitri Schoolwerth
@@ -148,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());