[graph] Use move instead of swap

pull/4324/head
Behdad Esfahbod 2 years ago
parent 07cb6bf87a
commit d1ddfc4d10
  1. 2
      src/graph/graph.hh

@ -465,7 +465,7 @@ struct graph_t
{
unsigned next_id = queue.pop_minimum().second;
hb_swap (sorted_graph[new_id], vertices_[next_id]);
sorted_graph[new_id] = std::move (vertices_[next_id]);
const vertex_t& next = sorted_graph[new_id];
if (unlikely (!check_success(new_id >= 0))) {

Loading…
Cancel
Save