[vlc-commits] macosx/MainMenu: minor code optimization
Felix Paul Kühne
git at videolan.org
Sat Aug 25 12:36:54 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Aug 25 12:36:52 2012 +0200| [7f4f7d34f2f192769764d6f44c49919dca3bcbac] | committer: Felix Paul Kühne
macosx/MainMenu: minor code optimization
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f4f7d34f2f192769764d6f44c49919dca3bcbac
---
modules/gui/macosx/MainMenu.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index 079b3c6..9dce844 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -417,7 +417,8 @@ static VLCMainMenu *_o_sharedInstance = nil;
NSMenu *o_context_menu = [[NSMenu alloc] init];
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]];
o_mi_tmp = [o_mu_playlistTableColumns addItemWithTitle:o_title
More information about the vlc-commits
mailing list