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

This commit is contained in:
Rubidium
2023-10-20 20:22:49 +02:00
committed by rubidium42
parent f16399f4c9
commit 37f84b7372
11 changed files with 12 additions and 12 deletions

View File

@@ -132,7 +132,7 @@ ICUParagraphLayout::ICUVisualRun::ICUVisualRun(const ICURun &run, int x) :
glyphs(run.glyphs), glyph_to_char(run.glyph_to_char), total_advance(run.total_advance), font(run.font)
{
/* If there are no positions, the ICURun was not Shaped; that should never happen. */
assert(run.positions.size() != 0);
assert(!run.positions.empty());
this->positions.reserve(run.positions.size());
/* "positions" is an array of x/y. So we need to alternate. */