]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a member variable const. 3762/head
authorDavid Wells <wellsd2@rpi.edu>
Tue, 10 Jan 2017 16:10:38 +0000 (11:10 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Tue, 10 Jan 2017 16:10:38 +0000 (11:10 -0500)
This is copied from an input parameter and never changed so it may as
well be marked as const.

include/deal.II/base/tensor_product_polynomials.h

index 549716086b63224bde95a8cbf8c87dea7e127081..f5bba584fba86ae39fc5f1d9c2a275ff749864a6 100644 (file)
@@ -347,7 +347,7 @@ private:
   /**
    * Copy of the vector <tt>pols</tt> of polynomials given to the constructor.
    */
-  std::vector<std::vector<Polynomials::Polynomial<double> > > polynomials;
+  const std::vector<std::vector<Polynomials::Polynomial<double> > > polynomials;
 
   /**
    * Number of tensor product polynomials. This is <tt>Nx*Ny*Nz</tt>, or with

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.