X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/635f01472ede31a6be433560ebd62eab3953dfe7..488b2c29c0cf468f96f148003b21952611325dbf:/src/cocoa/button.mm diff --git a/src/cocoa/button.mm b/src/cocoa/button.mm index 1774dd66ea..5ae10895f6 100644 --- a/src/cocoa/button.mm +++ b/src/cocoa/button.mm @@ -96,10 +96,10 @@ static NSRect MakeNSButtonDefaultRect() // create at (10.0,10.0) with size 20.0x20.0 (just bogus values) wxObjcAutoRefFromAlloc defaultButton = [[NSButton alloc] initWithFrame:NSMakeRect(10.0,10.0,20.0,20.0)]; - [defaultButton setBezelStyle:NSRoundedBezelStyle]; - [defaultButton setTitle:@""]; - [defaultButton sizeToFit]; - return [defaultButton frame]; + [static_cast(defaultButton) setBezelStyle:NSRoundedBezelStyle]; + [static_cast(defaultButton) setTitle:@""]; + [static_cast(defaultButton) sizeToFit]; + return [static_cast(defaultButton) frame]; } wxSize wxButtonBase::GetDefaultSize()