X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c798d002e91590a8556bfaef35c478410fbf560..cbe067603829728da8852282e895f25b2bccf732:/src/osx/iphone/checkbox.mm diff --git a/src/osx/iphone/checkbox.mm b/src/osx/iphone/checkbox.mm index efe49c6281..2fd405258e 100644 --- a/src/osx/iphone/checkbox.mm +++ b/src/osx/iphone/checkbox.mm @@ -27,7 +27,7 @@ + (void)initialize { static BOOL initialized = NO; - if (!initialized) + if (!initialized) { initialized = YES; wxOSXIPhoneClassAddWXMethods( self ); @@ -46,21 +46,21 @@ @end -wxWidgetImplType* wxWidgetImpl::CreateCheckBox( wxWindowMac* wxpeer, - wxWindowMac* WXUNUSED(parent), - wxWindowID WXUNUSED(id), +wxWidgetImplType* wxWidgetImpl::CreateCheckBox( wxWindowMac* wxpeer, + wxWindowMac* WXUNUSED(parent), + wxWindowID WXUNUSED(id), const wxString& WXUNUSED(label), - const wxPoint& pos, + const wxPoint& pos, const wxSize& size, - long style, - long WXUNUSED(extraStyle)) + long style, + long WXUNUSED(extraStyle)) { CGRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; wxUISwitch* v = [[wxUISwitch alloc] initWithFrame:r]; // if (style & wxCHK_3STATE) // [v setAllowsMixedState:YES]; - + wxWidgetIPhoneImpl* c = new wxWidgetIPhoneImpl( wxpeer, v ); return c; }