commit | 04f4909257b2da56d76c24872075f6f655ae4438 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Fri Jul 28 14:37:52 2023 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Fri Jul 28 14:37:52 2023 -0600 |
tree | 58bc64cb90b0d9aa42c51958be062184aa354f41 | |
parent | 3bedb0eeed62aaab3c6be849480a54214a59715b [diff] |
[graph] Use a move instead of swap
diff --git a/src/graph/graph.hh b/src/graph/graph.hh index a844af2..3462c9f 100644 --- a/src/graph/graph.hh +++ b/src/graph/graph.hh
@@ -568,7 +568,7 @@ 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 ();