From 9f23a6c83ca2951ac9a92800b25d2aca526de157 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 17 Nov 2004 04:08:08 +0000 Subject: [PATCH] Why use a pointer if we don't need one. git-svn-id: https://svn.dealii.org/trunk@9786 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe_q.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/deal.II/deal.II/source/fe/fe_q.cc b/deal.II/deal.II/source/fe/fe_q.cc index b275f532e8..e940a15af0 100644 --- a/deal.II/deal.II/source/fe/fe_q.cc +++ b/deal.II/deal.II/source/fe/fe_q.cc @@ -13,8 +13,6 @@ #include -#include - #ifdef HAVE_STD_STRINGSTREAM # include #else @@ -1385,8 +1383,7 @@ FE_Q<3>::initialize_constraints () for (unsigned int i=0;i<=this->degree;++i) v.push_back(Polynomials::LagrangeEquidistant(this->degree,i)); - const std::auto_ptr > - poly_f (new TensorProductPolynomials (v)); + const TensorProductPolynomials face_polynomial(v); this->interface_constraints .TableBase<2,double>::reinit (this->interface_constraints_size()); @@ -1478,7 +1475,7 @@ FE_Q<3>::initialize_constraints () new_index = indices[1] * (this->degree + 1) + indices[0]; this->interface_constraints(j,i) = - poly_f->compute_value (new_index, constraint_point); + face_polynomial.compute_value (new_index, constraint_point); // if the value is small up // to round-off, then -- 2.39.5