Ticket #3607: mc-3607-cleanup-cppcheck-warning-at-layout.patch

File mc-3607-cleanup-cppcheck-warning-at-layout.patch, 1.0 KB (added by and, 8 years ago)
  • src/filemanager/layout.c

    From a4def5280bd28501d99008c54b24d04736cf12e0 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sun, 24 Apr 2016 17:37:26 +0000
    Subject: [PATCH] Cleanup cppcheck warning at direntry.c
    
    Cleanup following cppcheck warnings:
    
    [src/filemanager/layout.c:231]: (style) Clarify calculation precedence for '&' and '?'.
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/filemanager/layout.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c
    index a95c501..6b6eda1 100644
    a b update_split (const WDialog * h) 
    228228        check_options[0].widget->state = panels_layout.vertical_equal ? 1 : 0; 
    229229    widget_redraw (WIDGET (check_options[0].widget)); 
    230230 
    231     tty_setcolor (check_options[0].widget->state & C_BOOL ? DISABLED_COLOR : COLOR_NORMAL); 
     231    tty_setcolor ((check_options[0].widget->state & C_BOOL) ? DISABLED_COLOR : COLOR_NORMAL); 
    232232 
    233233    widget_move (h, 6, 5); 
    234234    if (panels_layout.horizontal_split)