mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[gsubgpos] Use swap instead of move
Move is wrong when we want to reuse the object.
This commit is contained in:
1 parent
4401dd2482
commit
8a17cc4ecf
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user