src/video/uikit/SDL_uikitmessagebox.m
branchiOS-improvements
changeset 9501 574db299498f
parent 9499 6fe9b44b2d84
child 9505 6fc615dfc93f
     1.1 --- a/src/video/uikit/SDL_uikitmessagebox.m	Wed Jul 23 01:33:59 2014 -0300
     1.2 +++ b/src/video/uikit/SDL_uikitmessagebox.m	Wed Jul 23 03:05:31 2014 -0300
     1.3 @@ -30,17 +30,16 @@
     1.4  
     1.5  static SDL_bool s_showingMessageBox = SDL_FALSE;
     1.6  
     1.7 -@interface UIKit_UIAlertViewDelegate : NSObject <UIAlertViewDelegate> {
     1.8 -@private
     1.9 -    int *clickedButtonIndex;
    1.10 -}
    1.11 +@interface UIKit_UIAlertViewDelegate : NSObject <UIAlertViewDelegate>
    1.12  
    1.13  - (id)initWithButtonIndex:(int *)_buttonIndex;
    1.14  - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex;
    1.15  
    1.16  @end
    1.17  
    1.18 -@implementation UIKit_UIAlertViewDelegate
    1.19 +@implementation UIKit_UIAlertViewDelegate {
    1.20 +    int *clickedButtonIndex;
    1.21 +}
    1.22  
    1.23  - (id)initWithButtonIndex:(int *)buttonIndex
    1.24  {
    1.25 @@ -48,7 +47,8 @@
    1.26      if (self == nil) {
    1.27          return nil;
    1.28      }
    1.29 -    self->clickedButtonIndex = buttonIndex;
    1.30 +
    1.31 +    clickedButtonIndex = buttonIndex;
    1.32  
    1.33      return self;
    1.34  }