(Apple) Style nits

This commit is contained in:
twinaphex 2014-05-12 15:26:46 +02:00
parent 9d00e3af1b
commit b248834053
2 changed files with 7 additions and 7 deletions

View File

@ -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:@"<Parent>" association:sourceItem.stringByDeletingLastPathComponent
RAMenuItemBasic* parentItem = [RAMenuItemBasic itemWithDescription:BOXSTRING("<Parent>") 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];
}

View File

@ -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];