]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a member variable 'const'. 3753/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 9 Jan 2017 15:16:54 +0000 (08:16 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 9 Jan 2017 15:16:54 +0000 (08:16 -0700)
We can do so because it is initialized in the constructor.

include/deal.II/base/tensor_product_polynomials.h

index b27f1deafe5d20e5cabbf42c923b492def06837c..549716086b63224bde95a8cbf8c87dea7e127081 100644 (file)
@@ -353,7 +353,7 @@ private:
    * Number of tensor product polynomials. This is <tt>Nx*Ny*Nz</tt>, or with
    * terms dropped if the number of space dimensions is less than 3.
    */
-  unsigned int n_tensor_pols;
+  const unsigned int n_tensor_pols;
 
   /**
    * Each tensor product polynomial @รพ{i} is a product of one-dimensional

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.