[gsubgpos] Use swap instead of move
Move is wrong when we want to reuse the object.
This commit is contained in:
parent
4401dd2482
commit
8a17cc4ecf
|
@ -1590,7 +1590,7 @@ static void context_closure_recurse_lookups (hb_closure_context_t *c,
|
||||||
|
|
||||||
covered_seq_indicies.add (seqIndex);
|
covered_seq_indicies.add (seqIndex);
|
||||||
if (has_pos_glyphs) {
|
if (has_pos_glyphs) {
|
||||||
c->push_cur_active_glyphs () = std::move (pos_glyphs);
|
hb_swap (c->push_cur_active_glyphs (), pos_glyphs);
|
||||||
} else {
|
} else {
|
||||||
c->push_cur_active_glyphs ().set (*c->glyphs);
|
c->push_cur_active_glyphs ().set (*c->glyphs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue