vlc_linux/vlc-3.0.16/modules/gui/qt/menus.cpp
/**
 * \return Number of static entries
 **/
\return Number of static entries
\ return Number of static entries
inline int DeleteNonStaticEntries( QMenu *menu )
{
    if( !menu ) return VLC_EGENERIC;
    int i_ret = 0;
    QList< QAction* > actions = menu->actions();
    for( int i = 0; i < actions.count(); ++i )
    {
        if( actions[i]->data().toInt() & VLCMenuBar::ACTION_NO_CLEANUP )
            i_ret++;
        else
            delete actions[i];
    }
    return i_ret;
}
inline int DeleteNonStaticEntries ( QMenu * menu ) { if ( ! menu ) return VLC_EGENERIC ; int i_ret = 0 ; QList < QAction * > actions = menu -> actions ( ) ; for ( int i = 0 ; i < actions . count ( ) ; ++ i ) { if ( actions [ i ] -> data ( ) . toInt ( ) & VLCMenuBar :: ACTION_NO_CLEANUP ) i_ret ++ ; else delete actions [ i ] ; } return i_ret ; }
\return Number of static entries
\ return Number of static entries