From: Daniel Arndt Date: Sat, 10 Feb 2018 16:02:07 +0000 (+0100) Subject: Use make_unique/shared in matrix_free X-Git-Tag: v9.0.0-rc1~425^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df4f774cb09a3ee03ed17929046ab51b55252bc5;p=dealii.git Use make_unique/shared in matrix_free --- diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 1ca1a606ee..cdb183ea01 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -2215,9 +2215,9 @@ FEEvaluationBase other->mapped_geometry->get_quadrature() == quadrature) mapped_geometry = other->mapped_geometry; else - mapped_geometry.reset(new internal::MatrixFreeFunctions:: - MappingDataOnTheFly(mapping, quadrature, - update_flags)); + mapped_geometry + = std::make_shared > + (mapping, quadrature, update_flags); jacobian = mapped_geometry->get_inverse_jacobians().begin(); J_value = mapped_geometry->get_JxW_values().begin(); quadrature_points = mapped_geometry->get_quadrature_points().begin();