[gsubgpos] Use swap instead of move

Move is wrong when we want to reuse the object.
This commit is contained in:
Behdad Esfahbod 2023-01-05 14:15:38 -07:00
parent 4401dd2482
commit 8a17cc4ecf
1 changed files with 1 additions and 1 deletions

View File

@ -1590,7 +1590,7 @@ static void context_closure_recurse_lookups (hb_closure_context_t *c,
covered_seq_indicies.add (seqIndex);
if (has_pos_glyphs) {
c->push_cur_active_glyphs () = std::move (pos_glyphs);
hb_swap (c->push_cur_active_glyphs (), pos_glyphs);
} else {
c->push_cur_active_glyphs ().set (*c->glyphs);
}