Minor, normalize for each calls

This commit is contained in:
Ebrahim Byagowi 2019-09-24 12:08:12 +03:30
parent 22b6c6a5c7
commit cbc0646a6c
4 changed files with 8 additions and 13 deletions

View File

@ -143,10 +143,7 @@ struct glyf
const hb_subset_plan_t *plan)
{
TRACE_SERIALIZE (this);
for (const SubsetGlyph& _ : it)
_.serialize (c, plan);
for (const auto &_ : it) _.serialize (c, plan);
return_trace (true);
}

View File

@ -510,7 +510,7 @@ struct SinglePosFormat1
if (unlikely (!c->extend_min (*this))) return;
if (unlikely (!c->check_assign (valueFormat, valFormat))) return;
for (const Value& _ : hb_second (*it))
for (const auto &_ : hb_second (*it))
c->copy (_);
auto glyphs =
@ -598,8 +598,8 @@ struct SinglePosFormat2
if (unlikely (!c->check_assign (valueFormat, valFormat))) return;
if (unlikely (!c->check_assign (valueCount, it.len ()))) return;
for (auto iter : it)
for (const Value& _ : iter.second)
for (const auto &&iter : it)
for (const auto &_ : iter.second)
c->copy (_);
auto glyphs =
@ -665,8 +665,8 @@ struct SinglePos
{
hb_array_t<const Value> first_val_iter = hb_second (*glyph_val_iter_pairs);
for (auto iter : glyph_val_iter_pairs)
for (const hb_pair_t<Value, Value> _ : hb_zip (iter.second, first_val_iter))
for (const auto &&iter : glyph_val_iter_pairs)
for (const auto &&_ : hb_zip (iter.second, first_val_iter))
if (_.first != _.second)
return 2;

View File

@ -191,8 +191,7 @@ struct name
const void *dst_string_pool = &(this + this->stringOffset);
for (const NameRecord& _ : it)
c->copy (_, src_string_pool, dst_string_pool);
for (const auto &_ : it) c->copy (_, src_string_pool, dst_string_pool);
if (unlikely (c->ran_out_of_room)) return_trace (false);

View File

@ -84,8 +84,7 @@ struct VORG
this->defaultVertOriginY = defaultVertOriginY;
this->vertYOrigins.len = it.len ();
for (const VertOriginMetric _ : it)
c->copy (_);
for (const auto &&_ : it) c->copy (_);
}
bool subset (hb_subset_context_t *c) const