mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[graph] Use a move instead of swap
This commit is contained in:
parent
3bedb0eeed
commit
04f4909257
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ struct graph_t
|
|||
check_success (!sorted_graph.in_error ());
|
||||
|
||||
remap_all_obj_indices (id_map, &sorted_graph);
|
||||
hb_swap (vertices_, sorted_graph);
|
||||
vertices_ = std::move (sorted_graph);
|
||||
|
||||
if (!check_success (new_id == -1))
|
||||
print_orphaned_nodes ();
|
||||
|
|
Loading…
Add table
Reference in a new issue