Note: We should probably throw exception, and handle them a bit more gracefully, as we do in vlc_app.
[object removeAllItems];
p_item = config_FindConfig( VLC_OBJECT(p_intf), name );
- if( !p_item )
- {
- NSLog( @"serious problem, item not found" );
- return;
- }
+
+ /* serious problem, if no item found */
+ assert( p_item );
+
for( int i = 0; i < p_item->i_list; i++ )
{
NSMenuItem *mi;
[object removeAllItems];
p_item = config_FindConfig( VLC_OBJECT(p_intf), name );
- if( !p_item )
- {
- NSLog( @"serious problem, item not found" );
- return;
- }
+
+ /* serious problem, if no item found */
+ assert( p_item );
+
for( int i = 0; i < p_item->i_list; i++ )
{
NSMenuItem *mi;