From c1cbc1aee777ad419d95abfcfd3c1c269f4d339b Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 12 Jul 2020 20:04:59 +0200 Subject: [PATCH] Suppress MSVC++ performance warning This is to prevent warning C4800: 'LRESULT': forcing value to bool 'true' or 'false' (performance warning). --- src/msw/listbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index ccb65b8e32..b6a63c4318 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -617,7 +617,7 @@ void wxListBox::SetHorizontalExtent(const wxString& s) bool wxListBox::MSWSetTabStops(const wxVector& 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