Commit 362899776ea0b567a25b62a2a25bc70d5cfcbb33

Alex Szpakowski 2014-08-06T00:45:11

Minor code update for less verbosity

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/video/uikit/SDL_uikitviewcontroller.m b/src/video/uikit/SDL_uikitviewcontroller.m
index 9e5b026..0a9fbab 100644
--- a/src/video/uikit/SDL_uikitviewcontroller.m
+++ b/src/video/uikit/SDL_uikitviewcontroller.m
@@ -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;