From 1fe1b27051853c01bf1693cb6e15f1a44c9cc26c Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 6 Nov 2006 04:25:34 +0000 Subject: [PATCH] Make one variable const. git-svn-id: https://svn.dealii.org/trunk@14155 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-23/step-23.cc | 6 +++--- deal.II/examples/step-24/step-24.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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); } -- 2.39.5