From 9598242630f3bf22ea42d96bc7707003298f68c3 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 9 May 2022 11:46:56 -0400 Subject: [PATCH] Use std::move() with CellData. This now uses a std::vector to store data so we should skip the unnecessary copy. --- source/grid/grid_tools.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index b6969e4dac..298bc86b85 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -485,7 +485,7 @@ namespace GridTools face_cell_data.boundary_id = face->boundary_id(); face_cell_data.manifold_id = face->manifold_id(); - face_data.insert(face_cell_data); + face_data.insert(std::move(face_cell_data)); } /** @@ -596,7 +596,7 @@ namespace GridTools line_cell_data.boundary_id = line->boundary_id(); line_cell_data.manifold_id = line->manifold_id(); - line_data.insert(line_cell_data); + line_data.insert(std::move(line_cell_data)); } } } -- 2.39.5