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