]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make a variable const.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Jul 2005 20:52:20 +0000 (20:52 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Jul 2005 20:52:20 +0000 (20:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@11200 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out.cc

index 6c96915b97e149a45ae6a4f5054da4735daf4116..f47e8eff313494ca051d001bff663ca26cf5742f 100644 (file)
@@ -237,7 +237,7 @@ add_data_vector (const VECTOR         &vec,
                 const std::string    &name,
                 const DataVectorType  type)
 {
-  unsigned int n_components = dofs->get_fe().n_components ();
+  const unsigned int n_components = dofs->get_fe().n_components ();
 
   std::vector<std::string> names;
                                   // if only one component or vector

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.