From: bangerth Date: Mon, 6 Nov 2006 04:23:33 +0000 (+0000) Subject: Simplify filename creation X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3ef5f34bbf6eaf630e6ef76598566eeb810d94b;p=dealii-svn.git Simplify filename creation git-svn-id: https://svn.dealii.org/trunk@14153 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-24/step-24.cc b/deal.II/examples/step-24/step-24.cc index 5c5d0eecea..169c3fb0e0 100644 --- a/deal.II/examples/step-24/step-24.cc +++ b/deal.II/examples/step-24/step-24.cc @@ -45,7 +45,6 @@ #include #include -#include // This is the only new one: We will need a // library function defined in a class @@ -532,11 +531,10 @@ void TATForwardProblem::output_results () const data_out.build_patches (); - std::ostringstream filename; - filename << "solution-" - << Utilities::int_to_string (timestep_number, 3) - << ".gnuplot"; - std::ofstream output (filename.str().c_str()); + std::string filename = "solution-" + + Utilities::int_to_string (timestep_number, 3) + + ".gnuplot"; + std::ofstream output (filename.c_str()); data_out.write_gnuplot (output); }