* Copyright (C) 2003 the VideoLAN team
* $Id$
*
- * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
+ * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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();
}
else
{
// Should never happen
- msg_Warn( getIntf(), "Problem in the popup implementation" );
+ msg_Warn( getIntf(), "problem in the popup implementation" );
}
}