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:
@@ -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() )
|
||||||
|
Reference in New Issue
Block a user