mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
[SimpleGlyph] Minor use a range for loop
This commit is contained in:
1 parent
4123e0c757
commit
05c01ad5d3
1 file changed
+3
-4
@@ -154,10 +154,9 @@ struct SimpleGlyph
|
||||
{
|
||||
int v = 0;
|
||||
|
||||
unsigned count = points_.length;
|
||||
for (unsigned i = 0; i < count; i++)
|
||||
for (auto &point : points_)
|
||||
{
|
||||
unsigned flag = points_.arrayZ[i].flag;
|
||||
unsigned flag = point.flag;
|
||||
if (flag & short_flag)
|
||||
{
|
||||
if (unlikely (p + 1 > end)) return false;
|
||||
@@ -175,7 +174,7 @@ struct SimpleGlyph
|
||||
p += HBINT16::static_size;
|
||||
}
|
||||
}
|
||||
points_.arrayZ[i].*m = v;
|
||||
point.*m = v;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user