Avoid -Wconversion-null from MinGW-w64 in wxListBox code

Explicitly cast the pointer to LPARAM instead of implicitly casting NULL
to it.

No real changes.
This commit is contained in:
Vadim Zeitlin
2020-07-22 16:35:55 +02:00
parent 0f7387bc48
commit 0d18e12e79

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.empty() ? NULL : (LPARAM)&tabStops[0]) == TRUE;
(LPARAM)(tabStops.empty() ? NULL : &tabStops[0])) == TRUE;
}
wxSize wxListBox::DoGetBestClientSize() const