[vlc-devel] commit: Clean up (with a little help from clang) ( Felix Paul Kühne )
git version control
git at videolan.org
Mon Apr 20 00:14:47 CEST 2009
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr 20 00:14:11 2009 +0200| [9643263b9728f1b912bb3e409e1857a164f4947e] | committer: Felix Paul Kühne
Clean up (with a little help from clang)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9643263b9728f1b912bb3e409e1857a164f4947e
---
modules/control/unimotion.c | 5 -----
modules/gui/macosx/prefs_widgets.h | 3 ++-
modules/gui/macosx/simple_prefs.m | 2 +-
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/modules/control/unimotion.c b/modules/control/unimotion.c
index 6e60c1a..39b6c1b 100644
--- a/modules/control/unimotion.c
+++ b/modules/control/unimotion.c
@@ -189,13 +189,8 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data)
memset(&inputStructure, 0, sizeof(union motion_data));
memset(outputStructure, 0, sizeof(union motion_data));
-#ifdef __LP64__
result = IOConnectCallStructMethod(dataPort, kernFunc, &inputStructure,
structureInputSize, outputStructure, &structureOutputSize );
-#else
- result = IOConnectMethodStructureIStructureO(dataPort, kernFunc, structureInputSize,
- &structureOutputSize, &inputStructure, outputStructure);
-#endif
IOServiceClose(dataPort);
diff --git a/modules/gui/macosx/prefs_widgets.h b/modules/gui/macosx/prefs_widgets.h
index 7982349..077e5c2 100644
--- a/modules/gui/macosx/prefs_widgets.h
+++ b/modules/gui/macosx/prefs_widgets.h
@@ -27,6 +27,8 @@
#define LEFTMARGIN 18
#define RIGHTMARGIN 18
+static NSMenu *o_keys_menu = nil;
+
@interface VLCConfigControl : NSView
{
module_config_t *p_item;
@@ -51,7 +53,6 @@
- (void)applyChanges;
- (int)labelSize;
- (void) alignWithXPosition:(int)i_xPos;
-static NSMenu *o_keys_menu = nil;
+ (int)calcVerticalMargin: (int)i_curItem lastItem:(int)i_lastItem;
diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index fe05794..2e457c1 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -315,7 +315,7 @@ create_toolbar_item( NSString * o_itemIdent, NSString * o_name, NSString * o_des
NSMenuItem *mi;
if( p_item->ppsz_list_text != NULL )
mi = [[NSMenuItem alloc] initWithTitle: _NS( p_item->ppsz_list_text[i] ) action:NULL keyEquivalent: @""];
- else if( p_item->ppsz_list[i] && p_item->ppsz_list[i] == "" )
+ else if( p_item->ppsz_list[i] && strcmp(p_item->ppsz_list[i],"") == 0 )
{
[[object menu] addItem: [NSMenuItem separatorItem]];
continue;
More information about the vlc-devel
mailing list