Use empty() function to check if vector is empty
Use this dedicated function instead of checking if size() function returns zero/non-zero value.
This commit is contained in:
parent
c1cbc1aee7
commit
95b5fcc0ea
@ -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) == TRUE;
|
||||
tabStops.empty() ? NULL : (LPARAM)&tabStops[0]) == TRUE;
|
||||
}
|
||||
|
||||
wxSize wxListBox::DoGetBestClientSize() const
|
||||
|
Loading…
Reference in New Issue
Block a user