Commit 4d49ad69 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* added numerous casts to silence compilation warnings introduced with const...

* added numerous casts to silence compilation warnings introduced with const chars in module_config_t. still needs severe testing on other Macs.
parent 721f2cb1
...@@ -442,11 +442,11 @@ static VLCTreeItem *o_root_item = nil; ...@@ -442,11 +442,11 @@ static VLCTreeItem *o_root_item = nil;
[p_subcategory_item->o_children addObject:[[VLCTreeItem alloc] [p_subcategory_item->o_children addObject:[[VLCTreeItem alloc]
initWithName:[[VLCMain sharedInstance] initWithName:[[VLCMain sharedInstance]
localizedString: p_module->psz_shortname ? localizedString: (char *)p_module->psz_shortname ?
p_module->psz_shortname : p_module->psz_object_name ] (char *)p_module->psz_shortname : (char *)p_module->psz_object_name ]
withTitle:[[VLCMain sharedInstance] withTitle:[[VLCMain sharedInstance]
localizedString: p_module->psz_longname ? localizedString: (char *)p_module->psz_longname ?
p_module->psz_longname : p_module->psz_object_name ] (char *)p_module->psz_longname : (char *)p_module->psz_object_name ]
withHelp: @"" withHelp: @""
ID: p_module->i_object_id ID: p_module->i_object_id
parent:p_subcategory_item parent:p_subcategory_item
......
...@@ -1006,7 +1006,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1006,7 +1006,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString )
...@@ -1015,11 +1015,11 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1015,11 +1015,11 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
o_textfieldTooltip = [[VLCMain sharedInstance] wrapString: o_textfieldTooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] localizedString: p_item->psz_longtext] [[VLCMain sharedInstance] localizedString: (char *)p_item->psz_longtext]
toWidth: PREFS_WRAP]; toWidth: PREFS_WRAP];
if( p_item->value.psz ) if( p_item->value.psz )
o_textfieldString = [[VLCMain sharedInstance] o_textfieldString = [[VLCMain sharedInstance]
localizedString: p_item->value.psz]; localizedString: (char *)p_item->value.psz];
else else
o_textfieldString = [NSString stringWithString: @""]; o_textfieldString = [NSString stringWithString: @""];
ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2, ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2,
...@@ -1076,7 +1076,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1076,7 +1076,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString )
...@@ -1086,7 +1086,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1086,7 +1086,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
o_textfieldTooltip = [[VLCMain sharedInstance] wrapString: o_textfieldTooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_COMBO( o_combo, mainFrame, [o_label frame].size.width, ADD_COMBO( o_combo, mainFrame, [o_label frame].size.width,
-2, 0, o_textfieldTooltip ) -2, 0, o_textfieldTooltip )
[o_combo setAutoresizingMask:NSViewWidthSizable ]; [o_combo setAutoresizingMask:NSViewWidthSizable ];
...@@ -1140,9 +1140,9 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1140,9 +1140,9 @@ if( MACOS_VERSION >= 10.3 ) \
if( p_item->ppsz_list_text && p_item->ppsz_list_text[i_index] ) if( p_item->ppsz_list_text && p_item->ppsz_list_text[i_index] )
{ {
return [[VLCMain sharedInstance] return [[VLCMain sharedInstance]
localizedString: p_item->ppsz_list_text[i_index]]; localizedString: (char *)p_item->ppsz_list_text[i_index]];
} else return [[VLCMain sharedInstance] } else return [[VLCMain sharedInstance]
localizedString: p_item->ppsz_list[i_index]]; localizedString: (char *)p_item->ppsz_list[i_index]];
} }
@end @end
...@@ -1168,7 +1168,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1168,7 +1168,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, 3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, 3, o_labelString )
...@@ -1178,7 +1178,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1178,7 +1178,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the button */ /* build the button */
o_buttonTooltip = [[VLCMain sharedInstance] o_buttonTooltip = [[VLCMain sharedInstance]
wrapString: [[VLCMain sharedInstance] wrapString: [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_RIGHT_BUTTON( o_button, mainFrame, 0, 0, o_buttonTooltip, ADD_RIGHT_BUTTON( o_button, mainFrame, 0, 0, o_buttonTooltip,
_NS("Browse...") ) _NS("Browse...") )
[o_button setAutoresizingMask:NSViewMinXMargin ]; [o_button setAutoresizingMask:NSViewMinXMargin ];
...@@ -1187,10 +1187,10 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1187,10 +1187,10 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
o_textfieldTooltip = [[VLCMain sharedInstance] wrapString: o_textfieldTooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
if( p_item->value.psz ) if( p_item->value.psz )
o_textfieldString = [[VLCMain sharedInstance] o_textfieldString = [[VLCMain sharedInstance]
localizedString: p_item->value.psz]; localizedString: (char *)p_item->value.psz];
else else
o_textfieldString = [NSString stringWithString: @""]; o_textfieldString = [NSString stringWithString: @""];
ADD_TEXTFIELD( o_textfield, mainFrame, 12, 2, mainFrame.size.width - ADD_TEXTFIELD( o_textfield, mainFrame, 12, 2, mainFrame.size.width -
...@@ -1276,7 +1276,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1276,7 +1276,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -1, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -1, o_labelString )
...@@ -1286,7 +1286,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1286,7 +1286,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the popup */ /* build the popup */
o_popupTooltip = [[VLCMain sharedInstance] wrapString: o_popupTooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_POPUP( o_popup, mainFrame, [o_label frame].size.width, ADD_POPUP( o_popup, mainFrame, [o_label frame].size.width,
-2, 0, o_popupTooltip ) -2, 0, o_popupTooltip )
[o_popup setAutoresizingMask:NSViewWidthSizable ]; [o_popup setAutoresizingMask:NSViewWidthSizable ];
...@@ -1306,7 +1306,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1306,7 +1306,7 @@ if( MACOS_VERSION >= 10.3 ) \
p_item->psz_type ) ) p_item->psz_type ) )
{ {
NSString *o_description = [[VLCMain sharedInstance] NSString *o_description = [[VLCMain sharedInstance]
localizedString: p_parser->psz_longname]; localizedString: (char *)p_parser->psz_longname];
[o_popup addItemWithTitle: o_description]; [o_popup addItemWithTitle: o_description];
if( p_item->value.psz && if( p_item->value.psz &&
...@@ -1328,7 +1328,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1328,7 +1328,7 @@ if( MACOS_VERSION >= 10.3 ) \
p_config->value.i == p_item->min.i ) p_config->value.i == p_item->min.i )
{ {
NSString *o_description = [[VLCMain sharedInstance] NSString *o_description = [[VLCMain sharedInstance]
localizedString: p_parser->psz_longname]; localizedString: (char *)p_parser->psz_longname];
[o_popup addItemWithTitle: o_description]; [o_popup addItemWithTitle: o_description];
if( p_item->value.psz && !strcmp(p_item->value.psz, if( p_item->value.psz && !strcmp(p_item->value.psz,
...@@ -1384,7 +1384,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1384,7 +1384,7 @@ if( MACOS_VERSION >= 10.3 ) \
p_item->psz_type ) ) p_item->psz_type ) )
{ {
NSString *o_description = [[VLCMain sharedInstance] NSString *o_description = [[VLCMain sharedInstance]
localizedString: p_parser->psz_longname]; localizedString: (char *)p_parser->psz_longname];
if( [newval isEqualToString: o_description] ) if( [newval isEqualToString: o_description] )
{ {
returnval = strdup(p_parser->psz_object_name); returnval = strdup(p_parser->psz_object_name);
...@@ -1406,7 +1406,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1406,7 +1406,7 @@ if( MACOS_VERSION >= 10.3 ) \
p_config->value.i == p_item->min.i ) p_config->value.i == p_item->min.i )
{ {
NSString *o_description = [[VLCMain sharedInstance] NSString *o_description = [[VLCMain sharedInstance]
localizedString: p_parser->psz_longname]; localizedString: (char *)p_parser->psz_longname];
if( [newval isEqualToString: o_description] ) if( [newval isEqualToString: o_description] )
{ {
returnval = strdup(p_parser->psz_object_name); returnval = strdup(p_parser->psz_object_name);
...@@ -1438,12 +1438,12 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1438,12 +1438,12 @@ if( MACOS_VERSION >= 10.3 ) \
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString )
...@@ -1460,7 +1460,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1460,7 +1460,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
if( p_item->value.psz ) if( p_item->value.psz )
o_textfieldString = [[VLCMain sharedInstance] o_textfieldString = [[VLCMain sharedInstance]
localizedString: p_item->value.psz]; localizedString: (char *)p_item->value.psz];
else else
o_textfieldString = [NSString stringWithString: @""]; o_textfieldString = [NSString stringWithString: @""];
ADD_TEXTFIELD( o_textfield, mainFrame, mainFrame.size.width - 19 - 52, ADD_TEXTFIELD( o_textfield, mainFrame, mainFrame.size.width - 19 - 52,
...@@ -1537,7 +1537,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1537,7 +1537,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString )
...@@ -1547,7 +1547,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1547,7 +1547,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
o_textfieldTooltip = [[VLCMain sharedInstance] wrapString: o_textfieldTooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_COMBO( o_combo, mainFrame, [o_label frame].size.width, ADD_COMBO( o_combo, mainFrame, [o_label frame].size.width,
-2, 0, o_textfieldTooltip ) -2, 0, o_textfieldTooltip )
[o_combo setAutoresizingMask:NSViewWidthSizable ]; [o_combo setAutoresizingMask:NSViewWidthSizable ];
...@@ -1602,7 +1602,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1602,7 +1602,7 @@ if( MACOS_VERSION >= 10.3 ) \
{ {
if( p_item->ppsz_list_text && p_item->ppsz_list_text[i_index] ) if( p_item->ppsz_list_text && p_item->ppsz_list_text[i_index] )
return [[VLCMain sharedInstance] return [[VLCMain sharedInstance]
localizedString: p_item->ppsz_list_text[i_index]]; localizedString: (char *)p_item->ppsz_list_text[i_index]];
else else
return [NSString stringWithFormat: @"%i", p_item->pi_list[i_index]]; return [NSString stringWithFormat: @"%i", p_item->pi_list[i_index]];
} }
...@@ -1626,7 +1626,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1626,7 +1626,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString )
...@@ -1636,7 +1636,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1636,7 +1636,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2, ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2,
28, 49, o_tooltip, @"" ) 28, 49, o_tooltip, @"" )
[o_textfield setIntValue: p_item->value.i]; [o_textfield setIntValue: p_item->value.i];
...@@ -1735,12 +1735,12 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1735,12 +1735,12 @@ if( MACOS_VERSION >= 10.3 ) \
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -2, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -2, o_labelString )
...@@ -1757,7 +1757,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1757,7 +1757,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
if( p_item->value.psz ) if( p_item->value.psz )
o_textfieldString = [[VLCMain sharedInstance] o_textfieldString = [[VLCMain sharedInstance]
localizedString: p_item->value.psz]; localizedString: (char *)p_item->value.psz];
else else
o_textfieldString = [NSString stringWithString: @""]; o_textfieldString = [NSString stringWithString: @""];
ADD_TEXTFIELD( o_textfield, mainFrame, mainFrame.size.width - 19 - 52, ADD_TEXTFIELD( o_textfield, mainFrame, mainFrame.size.width - 19 - 52,
...@@ -1831,7 +1831,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1831,7 +1831,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString )
...@@ -1841,7 +1841,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1841,7 +1841,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the textfield */ /* build the textfield */
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2, ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2,
28, 49, o_tooltip, @"" ) 28, 49, o_tooltip, @"" )
[o_textfield setFloatValue: p_item->value.f]; [o_textfield setFloatValue: p_item->value.f];
...@@ -1943,7 +1943,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1943,7 +1943,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the checkbox */ /* add the checkbox */
o_tooltip = [[VLCMain sharedInstance] o_tooltip = [[VLCMain sharedInstance]
wrapString: [[VLCMain sharedInstance] wrapString: [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_CHECKBOX( o_checkbox, mainFrame, 0, ADD_CHECKBOX( o_checkbox, mainFrame, 0,
0, @"", o_tooltip, p_item->value.i, NSImageLeft) 0, @"", o_tooltip, p_item->value.i, NSImageLeft)
[o_checkbox setAutoresizingMask:NSViewNotSizable ]; [o_checkbox setAutoresizingMask:NSViewNotSizable ];
...@@ -1951,7 +1951,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1951,7 +1951,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, [o_checkbox frame].size.width, 0, o_labelString ) ADD_LABEL( o_label, mainFrame, [o_checkbox frame].size.width, 0, o_labelString )
...@@ -1993,7 +1993,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -1993,7 +1993,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -10, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -10, o_labelString )
...@@ -2003,7 +2003,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -2003,7 +2003,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the checkboxes */ /* add the checkboxes */
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_CHECKBOX( o_cmd_checkbox, mainFrame, ADD_CHECKBOX( o_cmd_checkbox, mainFrame,
[o_label frame].size.width + 2, 0, [o_label frame].size.width + 2, 0,
[NSString stringWithUTF8String:PLACE_OF_INTEREST_SIGN], o_tooltip, [NSString stringWithUTF8String:PLACE_OF_INTEREST_SIGN], o_tooltip,
...@@ -2054,7 +2054,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -2054,7 +2054,7 @@ if( MACOS_VERSION >= 10.3 ) \
} }
[o_popup setMenu:[o_keys_menu copyWithZone:nil]]; [o_popup setMenu:[o_keys_menu copyWithZone:nil]];
[o_popup selectItemWithTitle: [[VLCMain sharedInstance] [o_popup selectItemWithTitle: [[VLCMain sharedInstance]
localizedString:KeyToString( localizedString:(char *)KeyToString(
(((unsigned int)p_item->value.i) & ~KEY_MODIFIER ))]]; (((unsigned int)p_item->value.i) & ~KEY_MODIFIER ))]];
[self addSubview: o_popup]; [self addSubview: o_popup];
} }
...@@ -2140,7 +2140,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -2140,7 +2140,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -1, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -1, o_labelString )
...@@ -2150,7 +2150,7 @@ if( MACOS_VERSION >= 10.3 ) \ ...@@ -2150,7 +2150,7 @@ if( MACOS_VERSION >= 10.3 ) \
/* build the popup */ /* build the popup */
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
ADD_POPUP( o_popup, mainFrame, [o_label frame].origin.x + ADD_POPUP( o_popup, mainFrame, [o_label frame].origin.x +
[o_label frame].size.width + 3, [o_label frame].size.width + 3,
-2, 0, o_tooltip ) -2, 0, o_tooltip )
...@@ -2266,7 +2266,7 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST ) ...@@ -2266,7 +2266,7 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
o_labelString = [[VLCMain sharedInstance] o_labelString = [[VLCMain sharedInstance]
localizedString: p_item->psz_text]; localizedString: (char *)p_item->psz_text];
else else
o_labelString = [NSString stringWithString:@""]; o_labelString = [NSString stringWithString:@""];
ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString ) ADD_LABEL( o_label, mainFrame, 0, -3, o_labelString )
...@@ -2276,10 +2276,10 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST ) ...@@ -2276,10 +2276,10 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
/* build the textfield */ /* build the textfield */
o_tooltip = [[VLCMain sharedInstance] wrapString: o_tooltip = [[VLCMain sharedInstance] wrapString:
[[VLCMain sharedInstance] [[VLCMain sharedInstance]
localizedString: p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
if( p_item->value.psz ) if( p_item->value.psz )
o_textfieldString = [[VLCMain sharedInstance] o_textfieldString = [[VLCMain sharedInstance]
localizedString: p_item->value.psz]; localizedString: (char *)p_item->value.psz];
else else
o_textfieldString = [NSString stringWithString: @""]; o_textfieldString = [NSString stringWithString: @""];
ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2, ADD_TEXTFIELD( o_textfield, mainFrame, [o_label frame].size.width + 2,
......
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