mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[subset/cff] Micro-optimize
This commit is contained in:
1 parent
126d144196
commit
e077ca893e
1 file changed
+6
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user