From 363f84f3b7e164c00eac49a91660bb8abc75dfbf Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Wed, 6 Aug 2014 00:45:11 -0300 Subject: [PATCH] Minor code update for less verbosity --HG-- branch : iOS-improvements --- src/video/uikit/SDL_uikitviewcontroller.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/video/uikit/SDL_uikitviewcontroller.m b/src/video/uikit/SDL_uikitviewcontroller.m index 9e5b02616..0a9fbab4a 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;