X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21e0a4d5f15ea1df40d29359fc1e84085936ef3f..637b7e4f3a0fd1c6bdfc21d28e37bcf760e3b364:/src/mac/classic/radiobox.cpp diff --git a/src/mac/classic/radiobox.cpp b/src/mac/classic/radiobox.cpp index 39bd6b2855..869d0c9b44 100644 --- a/src/mac/classic/radiobox.cpp +++ b/src/mac/classic/radiobox.cpp @@ -6,16 +6,18 @@ // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// //------------------------------------------------------------------------------------- // headers //------------------------------------------------------------------------------------- -#include "wx/defs.h" -#include "wx/arrstr.h" +#include "wx/wxprec.h" + +#if wxUSE_RADIOBOX +#include "wx/arrstr.h" #include "wx/radiobox.h" #include "wx/radiobut.h" #include "wx/mac/uma.h" @@ -109,7 +111,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, int i; - m_noItems = n; + m_noItems = (size_t)n; m_noRowsOrCols = majorDim; m_radioButtonCycle = NULL; @@ -153,14 +155,13 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, bool wxRadioBox::Enable(bool enable) { - int i; wxRadioButton *current; if (!wxControl::Enable(enable)) return false; current = m_radioButtonCycle; - for (i = 0; i < m_noItems; i++) { + for (size_t i = 0; i < m_noItems; i++) { current->Enable(enable); current = current->NextInCycle(); } @@ -310,13 +311,12 @@ void wxRadioBox::SetSelection(int item) bool wxRadioBox::Show(bool show) { - int i; wxRadioButton *current; wxControl::Show(show); current=m_radioButtonCycle; - for (i=0;iShow(show); current=current->NextInCycle(); @@ -385,7 +385,7 @@ void wxRadioBox::SetFocus() void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags) { - int i; + size_t i; wxRadioButton *current; // define the position @@ -423,7 +423,7 @@ void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags) eachHeight[i] = (int)((3*eachHeight[i])/2); if (maxWidth