From: David Wells Date: Mon, 9 May 2022 15:46:56 +0000 (-0400) Subject: Use std::move() with CellData. X-Git-Tag: v9.4.0-rc1~251^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9598242630f3bf22ea42d96bc7707003298f68c3;p=dealii.git Use std::move() with CellData. This now uses a std::vector to store data so we should skip the unnecessary copy. --- 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)); } } }