Commit 26c29cce authored by Cheng Sun's avatar Cheng Sun Committed by Jean-Baptiste Kempf

Fix inconsistent coding style in EventObj::insert

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent ebc0e019
...@@ -280,16 +280,17 @@ bool EventObj::insert(const NPString &name, NPObject *listener, bool bubble) ...@@ -280,16 +280,17 @@ bool EventObj::insert(const NPString &name, NPObject *listener, bool bubble)
if( !event ) if( !event )
return false; return false;
for(lr_l::iterator iter = _llist.begin(); iter != _llist.end(); ++iter ){ for( lr_l::iterator iter = _llist.begin(); iter != _llist.end(); ++iter )
if(iter->listener() == listener && {
if( iter->listener() == listener &&
event->libvlc_type == iter->event_type() && event->libvlc_type == iter->event_type() &&
iter->bubble() == bubble) iter->bubble() == bubble )
{ {
return false; return false;
} }
} }
_llist.push_back(Listener(event, listener, bubble)); _llist.push_back( Listener(event, listener, bubble) );
return true; return true;
} }
......
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