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:
Artur Wieczorek 2020-07-12 20:07:29 +02:00
parent c1cbc1aee7
commit 95b5fcc0ea

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