Commit 7f4f7d34 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/MainMenu: minor code optimization

parent 87b64a6b
...@@ -417,7 +417,8 @@ static VLCMainMenu *_o_sharedInstance = nil; ...@@ -417,7 +417,8 @@ static VLCMainMenu *_o_sharedInstance = nil;
NSMenu *o_context_menu = [[NSMenu alloc] init]; NSMenu *o_context_menu = [[NSMenu alloc] init];
NSMenuItem *o_mi_tmp; NSMenuItem *o_mi_tmp;
for( NSUInteger i = 0; i < [o_ptc_menuorder count]; i++ ) NSUInteger count = [o_ptc_menuorder count];
for( NSUInteger i = 0; i < count; i++ )
{ {
NSString *o_title = [o_ptc_translation_dict objectForKey:[o_ptc_menuorder objectAtIndex:i]]; NSString *o_title = [o_ptc_translation_dict objectForKey:[o_ptc_menuorder objectAtIndex:i]];
o_mi_tmp = [o_mu_playlistTableColumns addItemWithTitle:o_title o_mi_tmp = [o_mu_playlistTableColumns addItemWithTitle:o_title
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment