mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/cff] Micro-optimize
This commit is contained in:
parent
126d144196
commit
e077ca893e
1 changed files with 6 additions and 4 deletions
|
@ -420,9 +420,10 @@ struct cff_subset_plan {
|
|||
for (glyph = 1; glyph < num_glyphs; glyph++)
|
||||
{
|
||||
hb_codepoint_t old_glyph;
|
||||
if (glyph == it->first)
|
||||
auto &_ = it[0];
|
||||
if (glyph == _.first)
|
||||
{
|
||||
old_glyph = it->second;
|
||||
old_glyph = _.second;
|
||||
it++;
|
||||
}
|
||||
else
|
||||
|
@ -500,9 +501,10 @@ struct cff_subset_plan {
|
|||
for (glyph = 1; glyph < num_glyphs; glyph++)
|
||||
{
|
||||
hb_codepoint_t old_glyph;
|
||||
if (glyph == it->first)
|
||||
auto &_ = it[0];
|
||||
if (glyph == _.first)
|
||||
{
|
||||
old_glyph = it->second;
|
||||
old_glyph = _.second;
|
||||
it++;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue