Suppress MSVC++ performance warning

MSVC++ doesn't seem to honour implicit int -> bool conversion and raises
warning C4800: "'int': forcing value to bool 'true' or 'false' (performance
warning)".
This commit is contained in:
Artur Wieczorek
2020-01-19 09:53:04 +01:00
parent 6873dc67fb
commit 28098259a8

View File

@@ -4677,9 +4677,9 @@ void wxGrid::ProcessGridCellMouseEvent(wxMouseEvent& event, wxGridWindow *eventG
else if ( event.LeftDClick() ) else if ( event.LeftDClick() )
handled = (DoGridCellLeftDClick(event, coords, pos), true); handled = (DoGridCellLeftDClick(event, coords, pos), true);
else if ( event.RightDown() ) else if ( event.RightDown() )
handled = SendEvent(wxEVT_GRID_CELL_RIGHT_CLICK, coords, event); handled = SendEvent(wxEVT_GRID_CELL_RIGHT_CLICK, coords, event) != 0;
else if ( event.RightDClick() ) else if ( event.RightDClick() )
handled = SendEvent(wxEVT_GRID_CELL_RIGHT_DCLICK, coords, event); handled = SendEvent(wxEVT_GRID_CELL_RIGHT_DCLICK, coords, event) != 0;
} }
} }
else if ( event.Moving() ) else if ( event.Moving() )