[iter] Revert back uses of C++11 auto type deduction
This commit is contained in:
parent
0828db8444
commit
a46874f1ab
|
@ -723,7 +723,7 @@ struct PairPosFormat1
|
|||
bool intersects (const hb_set_t *glyphs) const
|
||||
{
|
||||
unsigned int count = pairSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
|
|
@ -46,7 +46,7 @@ struct SingleSubstFormat1
|
|||
|
||||
void closure (hb_closure_context_t *c) const
|
||||
{
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
/* TODO Switch to range-based API to work around malicious fonts.
|
||||
* https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -59,7 +59,7 @@ struct SingleSubstFormat1
|
|||
void collect_glyphs (hb_collect_glyphs_context_t *c) const
|
||||
{
|
||||
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
/* TODO Switch to range-based API to work around malicious fonts.
|
||||
* https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -110,7 +110,7 @@ struct SingleSubstFormat1
|
|||
hb_vector_t<GlyphID> from;
|
||||
hb_vector_t<GlyphID> to;
|
||||
hb_codepoint_t delta = deltaGlyphID;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (!glyphset.has (iter.get_glyph ())) continue;
|
||||
from.push ()->set (glyph_map[iter.get_glyph ()]);
|
||||
|
@ -146,7 +146,7 @@ struct SingleSubstFormat2
|
|||
void closure (hb_closure_context_t *c) const
|
||||
{
|
||||
unsigned int count = substitute.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -159,7 +159,7 @@ struct SingleSubstFormat2
|
|||
{
|
||||
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
|
||||
unsigned int count = substitute.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -206,7 +206,7 @@ struct SingleSubstFormat2
|
|||
const hb_map_t &glyph_map = *c->plan->glyph_map;
|
||||
hb_vector_t<GlyphID> from;
|
||||
hb_vector_t<GlyphID> to;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (!glyphset.has (iter.get_glyph ())) continue;
|
||||
from.push ()->set (glyph_map[iter.get_glyph ()]);
|
||||
|
@ -362,7 +362,7 @@ struct MultipleSubstFormat1
|
|||
void closure (hb_closure_context_t *c) const
|
||||
{
|
||||
unsigned int count = sequence.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -542,7 +542,7 @@ struct AlternateSubstFormat1
|
|||
void closure (hb_closure_context_t *c) const
|
||||
{
|
||||
unsigned int count = alternateSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -555,7 +555,7 @@ struct AlternateSubstFormat1
|
|||
{
|
||||
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
|
||||
unsigned int count = alternateSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -858,7 +858,7 @@ struct LigatureSubstFormat1
|
|||
bool intersects (const hb_set_t *glyphs) const
|
||||
{
|
||||
unsigned int count = ligatureSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -872,7 +872,7 @@ struct LigatureSubstFormat1
|
|||
void closure (hb_closure_context_t *c) const
|
||||
{
|
||||
unsigned int count = ligatureSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -885,7 +885,7 @@ struct LigatureSubstFormat1
|
|||
{
|
||||
if (unlikely (!(this+coverage).add_coverage (c->input))) return;
|
||||
unsigned int count = ligatureSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -1062,7 +1062,7 @@ struct ReverseChainSingleSubstFormat1
|
|||
|
||||
const ArrayOf<GlyphID> &substitute = StructAfter<ArrayOf<GlyphID> > (lookahead);
|
||||
count = substitute.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
|
|
@ -1438,7 +1438,7 @@ struct ContextFormat1
|
|||
};
|
||||
|
||||
unsigned int count = ruleSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -1457,7 +1457,7 @@ struct ContextFormat1
|
|||
};
|
||||
|
||||
unsigned int count = ruleSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -2091,7 +2091,7 @@ struct ChainContextFormat1
|
|||
};
|
||||
|
||||
unsigned int count = ruleSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
@ -2110,7 +2110,7 @@ struct ChainContextFormat1
|
|||
};
|
||||
|
||||
unsigned int count = ruleSet.len;
|
||||
for (auto iter = (this+coverage).iter (); iter; iter++)
|
||||
for (/*TODO(C++11)auto*/Coverage::iter_t iter = (this+coverage).iter (); iter; iter++)
|
||||
{
|
||||
if (unlikely (iter.get_coverage () >= count))
|
||||
break; /* Work around malicious fonts. https://github.com/harfbuzz/harfbuzz/issues/363 */
|
||||
|
|
Loading…
Reference in New Issue