Minor code update for less verbosity iOS-improvements
authorAlex Szpakowski <slime73@gmail.com>
Wed, 06 Aug 2014 00:45:11 -0300
branchiOS-improvements
changeset 9509 350f38eb3d0f
parent 9508 39c47dcd5d50
child 9510 e19faa3b5d88
Minor code update for less verbosity
src/video/uikit/SDL_uikitviewcontroller.m
--- a/src/video/uikit/SDL_uikitviewcontroller.m	Mon Aug 04 15:30:53 2014 -0300
+++ b/src/video/uikit/SDL_uikitviewcontroller.m	Wed Aug 06 00:45:11 2014 -0300
@@ -63,11 +63,10 @@
 - (NSUInteger)supportedInterfaceOrientations
 {
     NSUInteger orientationMask = 0;
-    const char *orientationsHint = SDL_GetHint(SDL_HINT_ORIENTATIONS);
+    const char *hint = SDL_GetHint(SDL_HINT_ORIENTATIONS);
 
-    if (orientationsHint != NULL) {
-        NSArray *orientations = [@(orientationsHint) componentsSeparatedByCharactersInSet:
-                                 [NSCharacterSet characterSetWithCharactersInString:@" "]];
+    if (hint != NULL) {
+        NSArray *orientations = [@(hint) componentsSeparatedByString:@" "];
 
         if ([orientations containsObject:@"LandscapeLeft"]) {
             orientationMask |= UIInterfaceOrientationMaskLandscapeLeft;