From: wolf Date: Wed, 17 Nov 2004 04:08:08 +0000 (+0000) Subject: Why use a pointer if we don't need one. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f23a6c83ca2951ac9a92800b25d2aca526de157;p=dealii-svn.git Why use a pointer if we don't need one. git-svn-id: https://svn.dealii.org/trunk@9786 0785d39b-7218-0410-832d-ea1e28bc413d --- 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