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

@@ -29,7 +29,7 @@ static const int SLIDER_WIDTH = 3;
void DrawSliderWidget(Rect r, int min_value, int max_value, int value, const std::map<int, StringID> &labels)
{
/* Allow space for labels. We assume they are in the small font. */
if (labels.size() > 0) r.bottom -= FONT_HEIGHT_SMALL + WidgetDimensions::scaled.hsep_normal;
if (!labels.empty()) r.bottom -= FONT_HEIGHT_SMALL + WidgetDimensions::scaled.hsep_normal;
max_value -= min_value;