Commit 9ffda480 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove useless binary and with CONFIG_ITEM

If the high nibble is set, the type is item type and the low nibble is
necessarily zero.
parent cc7e7e49
...@@ -456,7 +456,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -456,7 +456,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
boxlayout = new QGridLayout(); boxlayout = new QGridLayout();
} }
/* Only one hotkey control */ /* Only one hotkey control */
if( (p_item->i_type & CONFIG_ITEM) == CONFIG_ITEM_KEY ) if( p_item->i_type == CONFIG_ITEM_KEY )
{ {
if( has_hotkey ) if( has_hotkey )
continue; continue;
......
...@@ -428,7 +428,7 @@ void ExtVideo::initComboBoxItems( QObject *widget ) ...@@ -428,7 +428,7 @@ void ExtVideo::initComboBoxItems( QObject *widget )
qtu( option ) ); qtu( option ) );
if( p_item ) if( p_item )
{ {
int i_type = p_item->i_type & CONFIG_ITEM; int i_type = p_item->i_type;
for( int i_index = 0; i_index < p_item->i_list; i_index++ ) for( int i_index = 0; i_index < p_item->i_list; i_index++ )
{ {
if( i_type == CONFIG_ITEM_INTEGER if( i_type == CONFIG_ITEM_INTEGER
......
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