Codechange: replace x.size() > 0 with !x.empty()

This commit is contained in:
Rubidium
2023-10-20 20:18:31 +02:00
committed by rubidium42
parent c9276c2959
commit f16399f4c9
15 changed files with 23 additions and 23 deletions

View File

@@ -134,7 +134,7 @@ struct DropdownWindow : Window {
DropdownWindow(Window *parent, DropDownList &&list, int selected, int button, bool instant_close, const Point &position, const Dimension &size, Colours wi_colour, bool scroll)
: Window(&_dropdown_desc), list(std::move(list))
{
assert(this->list.size() > 0);
assert(!this->list.empty());
this->position = position;