From 04f4909257b2da56d76c24872075f6f655ae4438 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 Jul 2023 14:37:52 -0600 Subject: [PATCH] [graph] Use a move instead of swap --- src/graph/graph.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/graph.hh b/src/graph/graph.hh index a844af285..3462c9f66 100644 --- a/src/graph/graph.hh +++ b/src/graph/graph.hh @@ -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 ();