Suppress MSVC++ performance warning

This is to prevent warning C4800: 'LRESULT': forcing value to bool 'true'
or 'false' (performance warning).
This commit is contained in:
Artur Wieczorek
2020-07-12 20:04:59 +02:00
parent 3feea201da
commit c1cbc1aee7

View File

@@ -617,7 +617,7 @@ void wxListBox::SetHorizontalExtent(const wxString& s)
bool wxListBox::MSWSetTabStops(const wxVector<int>& tabStops)
{
return SendMessage(GetHwnd(), LB_SETTABSTOPS, (WPARAM)tabStops.size(),
tabStops.size() ? (LPARAM)&tabStops[0] : 0);
tabStops.size() ? (LPARAM)&tabStops[0] : 0) == TRUE;
}
wxSize wxListBox::DoGetBestClientSize() const