]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Why use a pointer if we don't need one.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Nov 2004 04:08:08 +0000 (04:08 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Nov 2004 04:08:08 +0000 (04:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@9786 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_q.cc

index b275f532e88ab9277a96de77609fc1ce4128199b..e940a15af0c2a34a22d8ddf281b318d0d1fa4082 100644 (file)
@@ -13,8 +13,6 @@
 
 #include <fe/fe_q.h>
 
-#include <memory>
-
 #ifdef HAVE_STD_STRINGSTREAM
 #  include <sstream>
 #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<const TensorProductPolynomials<dim-1> >
-    poly_f (new TensorProductPolynomials<dim-1> (v));
+  const TensorProductPolynomials<dim-1> 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.