]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make one variable const.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 Nov 2006 04:25:34 +0000 (04:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 Nov 2006 04:25:34 +0000 (04:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@14155 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-23/step-23.cc
deal.II/examples/step-24/step-24.cc

index 2a689d328abe1ccc92a6030aaab6276fd53712e0..d9dcd03dcbac009cf8beccff85fb622ea5bc6008 100644 (file)
@@ -544,9 +544,9 @@ void WaveEquation<dim>::output_results () const
 
   data_out.build_patches ();
 
-  std::string filename = "solution-" +
-                        Utilities::int_to_string (timestep_number, 3) +
-                        ".gnuplot";
+  const std::string filename = "solution-" +
+                              Utilities::int_to_string (timestep_number, 3) +
+                              ".gnuplot";
   std::ofstream output (filename.c_str());
   data_out.write_gnuplot (output);
 }
index 169c3fb0e0c2477946d4d0c51b70e3142c389607..52082d172de8c92afa1f040401828d436b0055c8 100644 (file)
@@ -531,9 +531,9 @@ void TATForwardProblem<dim>::output_results () const
 
   data_out.build_patches ();
 
-  std::string filename =  "solution-" +
-                         Utilities::int_to_string (timestep_number, 3) +
-                         ".gnuplot";
+  const std::string filename =  "solution-" +
+                               Utilities::int_to_string (timestep_number, 3) +
+                               ".gnuplot";
   std::ofstream output (filename.c_str());
   data_out.write_gnuplot (output);
 }

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.