]> git.sesse.net Git - vlc/commitdiff
Remove useless comparisson (n >= 0) was always true (n is unsigned int)
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 12:54:39 +0000 (12:54 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 12:54:39 +0000 (12:54 +0000)
modules/gui/skins2/src/popup.cpp

index 92c097c634d6378f9d5ea03133073eafa3fd7a21..073b97352941bb50615e9bf39ab29a22fea3add4 100644 (file)
@@ -73,7 +73,7 @@ void Popup::addSeparator( int pos )
 void Popup::handleEvent( const EvtMenu &rEvent )
 {
     unsigned int n = m_pOsPopup->getPosFromId( rEvent.getItemId() );
-    if( n >= 0 && n < m_actions.size() && m_actions[n] )
+    if( (n < m_actions.size()) && m_actions[n] )
     {
         m_actions[n]->execute();
     }