From 0e5932483c6f910c427d872d7b8aae2d1e5818ac Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Fri, 3 May 2019 07:50:34 +0200 Subject: [PATCH] Use std_cxx14::make_unique in ScratchData --- source/meshworker/scratch_data.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/source/meshworker/scratch_data.cc b/source/meshworker/scratch_data.cc index 8e6e8708c8..e5122f00c0 100644 --- a/source/meshworker/scratch_data.cc +++ b/source/meshworker/scratch_data.cc @@ -128,10 +128,8 @@ namespace MeshWorker const typename DoFHandler::active_cell_iterator &cell) { if (!fe_values) - fe_values = std::make_unique>(*mapping, - *fe, - cell_quadrature, - cell_update_flags); + fe_values = std_cxx14::make_unique>( + *mapping, *fe, cell_quadrature, cell_update_flags); fe_values->reinit(cell); cell->get_dof_indices(local_dof_indices); @@ -148,7 +146,7 @@ namespace MeshWorker const unsigned int face_no) { if (!fe_face_values) - fe_face_values = std::make_unique>( + fe_face_values = std_cxx14::make_unique>( *mapping, *fe, face_quadrature, face_update_flags); fe_face_values->reinit(cell, face_no); @@ -169,8 +167,9 @@ namespace MeshWorker if (subface_no != numbers::invalid_unsigned_int) { if (!fe_subface_values) - fe_subface_values = std::make_unique>( - *mapping, *fe, face_quadrature, face_update_flags); + fe_subface_values = + std_cxx14::make_unique>( + *mapping, *fe, face_quadrature, face_update_flags); fe_subface_values->reinit(cell, face_no, subface_no); cell->get_dof_indices(local_dof_indices); @@ -189,7 +188,7 @@ namespace MeshWorker const typename DoFHandler::active_cell_iterator &cell) { if (!neighbor_fe_values) - neighbor_fe_values = std::make_unique>( + neighbor_fe_values = std_cxx14::make_unique>( *mapping, *fe, cell_quadrature, neighbor_cell_update_flags); neighbor_fe_values->reinit(cell); @@ -207,8 +206,9 @@ namespace MeshWorker const unsigned int face_no) { if (!neighbor_fe_face_values) - neighbor_fe_face_values = std::make_unique>( - *mapping, *fe, face_quadrature, neighbor_face_update_flags); + neighbor_fe_face_values = + std_cxx14::make_unique>( + *mapping, *fe, face_quadrature, neighbor_face_update_flags); neighbor_fe_face_values->reinit(cell, face_no); cell->get_dof_indices(neighbor_dof_indices); current_neighbor_fe_values = neighbor_fe_face_values.get(); @@ -228,7 +228,7 @@ namespace MeshWorker { if (!neighbor_fe_subface_values) neighbor_fe_subface_values = - std::make_unique>( + std_cxx14::make_unique>( *mapping, *fe, face_quadrature, neighbor_face_update_flags); neighbor_fe_subface_values->reinit(cell, face_no, subface_no); cell->get_dof_indices(neighbor_dof_indices); -- 2.39.5