No variable shadowing, reuse the size variable
authorSam Lantinga
Sat, 29 Sep 2012 00:01:32 -0700
changeset 651032432af683cf
parent 6509 e94d5a5376c1
child 6511 41253d43a2cf
No variable shadowing, reuse the size variable
src/video/uikit/SDL_uikitvideo.m
     1.1 --- a/src/video/uikit/SDL_uikitvideo.m	Fri Sep 28 15:59:36 2012 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitvideo.m	Sat Sep 29 00:01:32 2012 -0700
     1.3 @@ -321,7 +321,7 @@
     1.4  
     1.5      // Add the main screen.
     1.6      UIScreen *uiscreen = [UIScreen mainScreen];
     1.7 -    const CGSize size = [uiscreen bounds].size;
     1.8 +    CGSize size = [uiscreen bounds].size;
     1.9  
    1.10      if (UIKit_AddDisplay(uiscreen, size) < 0) {
    1.11          return -1;
    1.12 @@ -334,7 +334,7 @@
    1.13          for (UIScreen *uiscreen in [UIScreen screens]) {
    1.14              // Only add the other screens
    1.15              if (uiscreen != [UIScreen mainScreen]) {
    1.16 -                const CGSize size = [uiscreen bounds].size;
    1.17 +                size = [uiscreen bounds].size;
    1.18                  if (UIKit_AddDisplay(uiscreen, size) < 0) {
    1.19                      return -1;
    1.20                  }