[graph] Use a move instead of swap

pull/4350/head
Behdad Esfahbod 1 year ago
parent 3bedb0eeed
commit 04f4909257
  1. 2
      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 ();

Loading…
Cancel
Save