From: bangerth Date: Mon, 6 Nov 2006 04:25:34 +0000 (+0000) Subject: Make one variable const. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe1b27051853c01bf1693cb6e15f1a44c9cc26c;p=dealii-svn.git Make one variable const. git-svn-id: https://svn.dealii.org/trunk@14155 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-23/step-23.cc b/deal.II/examples/step-23/step-23.cc index 2a689d328a..d9dcd03dcb 100644 --- a/deal.II/examples/step-23/step-23.cc +++ b/deal.II/examples/step-23/step-23.cc @@ -544,9 +544,9 @@ void WaveEquation::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); } diff --git a/deal.II/examples/step-24/step-24.cc b/deal.II/examples/step-24/step-24.cc index 169c3fb0e0..52082d172d 100644 --- a/deal.II/examples/step-24/step-24.cc +++ b/deal.II/examples/step-24/step-24.cc @@ -531,9 +531,9 @@ void TATForwardProblem::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); }