Revert previous change and fix -Wrange-loop-analysis complains

This commit is contained in:
Ebrahim Byagowi 2019-09-24 13:52:46 +03:30
parent cbc0646a6c
commit 68d39ea486
2 changed files with 4 additions and 4 deletions

View File

@ -598,7 +598,7 @@ struct SinglePosFormat2
if (unlikely (!c->check_assign (valueFormat, valFormat))) return;
if (unlikely (!c->check_assign (valueCount, it.len ()))) return;
for (const auto &&iter : it)
for (const auto iter : it)
for (const auto &_ : iter.second)
c->copy (_);
@ -665,8 +665,8 @@ struct SinglePos
{
hb_array_t<const Value> first_val_iter = hb_second (*glyph_val_iter_pairs);
for (const auto &&iter : glyph_val_iter_pairs)
for (const auto &&_ : 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

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