mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
Clean up (with a little help from clang)
This commit is contained in:
parent
bb4b491012
commit
9643263b97
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user