[vlc-commits] Fix inconsistent coding style in EventObj::insert

Cheng Sun git at videolan.org
Wed Dec 28 19:15:57 CET 2011


npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Wed Dec 28 12:11:49 2011 +0000| [26c29cce29b21d5b120756aa5e467eaed0c79ee0] | committer: Jean-Baptiste Kempf

Fix inconsistent coding style in EventObj::insert

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=26c29cce29b21d5b120756aa5e467eaed0c79ee0
---

 npapi/vlcplugin_base.cpp |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
index 378638e..b96e756 100644
--- a/npapi/vlcplugin_base.cpp
+++ b/npapi/vlcplugin_base.cpp
@@ -280,16 +280,17 @@ bool EventObj::insert(const NPString &name, NPObject *listener, bool bubble)
     if( !event )
         return false;
 
-    for(lr_l::iterator iter = _llist.begin(); iter != _llist.end(); ++iter ){
-        if(iter->listener() == listener &&
-           event->libvlc_type == iter->event_type() &&
-           iter->bubble() == bubble)
+    for( lr_l::iterator iter = _llist.begin(); iter != _llist.end(); ++iter )
+    {
+        if( iter->listener() == listener &&
+            event->libvlc_type == iter->event_type() &&
+            iter->bubble() == bubble )
         {
             return false;
         }
     }
 
-    _llist.push_back(Listener(event, listener, bubble));
+    _llist.push_back( Listener(event, listener, bubble) );
     return true;
 }
 



More information about the vlc-commits mailing list