Changeset 12277


Ignore:
Timestamp:
Mar 31, 2011, 4:58:38 AM (11 years ago)
Author:
jordan
Message:

(trunk gtk) remove "dead nested assignment" wart detected by clang static analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/file-list.c

    r12234 r12277  
    765765onViewButtonPressed( GtkWidget * w, GdkEventButton * event, gpointer gdata )
    766766{
    767     tr_torrent * tor;
     767    GtkTreeViewColumn * col;
     768    GtkTreePath * path = NULL;
    768769    gboolean handled = FALSE;
     770    GtkTreeView * treeview = GTK_TREE_VIEW( w );
    769771    FileData * data = gdata;
    770772
    771     if(( tor = gtr_core_find_torrent( data->core, data->torrentId )))
    772     {
    773         GtkTreeViewColumn * col;
    774         GtkTreePath * path = NULL;
    775         GtkTreeView * treeview = GTK_TREE_VIEW( w );
    776 
    777         if( event->type == GDK_BUTTON_PRESS && event->button == 1
    778             && !( event->state & ( GDK_SHIFT_MASK | GDK_CONTROL_MASK ) )
    779             && getAndSelectEventPath( treeview, event, &col, &path ) )
    780             handled = onViewPathToggled( treeview, col, path, data );
     773    if( ( event->type == GDK_BUTTON_PRESS )
     774         && ( event->button == 1 )
     775         && !( event->state & ( GDK_SHIFT_MASK | GDK_CONTROL_MASK ) )
     776         && getAndSelectEventPath( treeview, event, &col, &path ) )
     777    {
     778        handled = onViewPathToggled( treeview, col, path, data );
    781779
    782780        if( path != NULL )
Note: See TracChangeset for help on using the changeset viewer.