From b2488340536b977fb2d7271526b0e315897a2988 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 12 May 2014 15:26:46 +0200 Subject: [PATCH] (Apple) Style nits --- apple/iOS/browser.m | 11 ++++++----- apple/iOS/platform.m | 3 +-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apple/iOS/browser.m b/apple/iOS/browser.m index 85ce292fe0..7ddbc2a5c8 100644 --- a/apple/iOS/browser.m +++ b/apple/iOS/browser.m @@ -411,20 +411,21 @@ static void file_action(enum file_action action, NSString* source, NSString* tar // Parent item NSString* sourceItem = _path.stringByDeletingLastPathComponent; - RAMenuItemBasic* parentItem = [RAMenuItemBasic itemWithDescription:@"" association:sourceItem.stringByDeletingLastPathComponent + RAMenuItemBasic* parentItem = [RAMenuItemBasic itemWithDescription:BOXSTRING("") association:sourceItem.stringByDeletingLastPathComponent action:^(id userdata){ [weakSelf moveInto:userdata]; } detail:NULL]; - [self.sections addObject:@[@"", parentItem]]; + [self.sections addObject:@[BOXSTRING(""), parentItem]]; // List contents struct string_list* contents = dir_list_new([_path stringByDeletingLastPathComponent].UTF8String, 0, true); - NSMutableArray* items = [NSMutableArray arrayWithObject:@""]; + NSMutableArray* items = [NSMutableArray arrayWithObject:BOXSTRING("")]; if (contents) { + int i; dir_list_sort(contents, true); - for (int i = 0; i < contents->size; i ++) + for (i = 0; i < contents->size; i ++) { if (contents->elems[i].attr.b) { @@ -439,7 +440,7 @@ static void file_action(enum file_action action, NSString* source, NSString* tar dir_list_free(contents); } - [self setTitle:[@"Move " stringByAppendingString:_path.lastPathComponent]]; + [self setTitle:[BOXSTRING("Move ") stringByAppendingString:_path.lastPathComponent]]; [self.sections addObject:items]; } diff --git a/apple/iOS/platform.m b/apple/iOS/platform.m index 807981642d..782188d892 100644 --- a/apple/iOS/platform.m +++ b/apple/iOS/platform.m @@ -115,12 +115,11 @@ void ios_set_logging_state(const char *log_path, bool on) static void handle_touch_event(NSArray* touches) { int i; - unsigned long numTouches = touches.count; const float scale = [[UIScreen mainScreen] scale]; g_current_input_data.touch_count = 0; - for(i = 0; i != numTouches && g_current_input_data.touch_count < MAX_TOUCHES; i ++) + for(i = 0; i < touches.count && g_current_input_data.touch_count < MAX_TOUCHES; i ++) { UITouch* touch = [touches objectAtIndex:i];