No variable shadowing, reuse the size variable
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Sep 2012 00:01:32 -0700
changeset 6510 32432af683cf
parent 6509 e94d5a5376c1
child 6511 41253d43a2cf
No variable shadowing, reuse the size variable
src/video/uikit/SDL_uikitvideo.m
--- a/src/video/uikit/SDL_uikitvideo.m	Fri Sep 28 15:59:36 2012 -0700
+++ b/src/video/uikit/SDL_uikitvideo.m	Sat Sep 29 00:01:32 2012 -0700
@@ -321,7 +321,7 @@
 
     // Add the main screen.
     UIScreen *uiscreen = [UIScreen mainScreen];
-    const CGSize size = [uiscreen bounds].size;
+    CGSize size = [uiscreen bounds].size;
 
     if (UIKit_AddDisplay(uiscreen, size) < 0) {
         return -1;
@@ -334,7 +334,7 @@
         for (UIScreen *uiscreen in [UIScreen screens]) {
             // Only add the other screens
             if (uiscreen != [UIScreen mainScreen]) {
-                const CGSize size = [uiscreen bounds].size;
+                size = [uiscreen bounds].size;
                 if (UIKit_AddDisplay(uiscreen, size) < 0) {
                     return -1;
                 }