From: bangerth Date: Mon, 6 Nov 2006 04:24:48 +0000 (+0000) Subject: Simplify filename creation X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=266cc9c948f7b73df512e2ed5699420e91ab112a;p=dealii-svn.git Simplify filename creation git-svn-id: https://svn.dealii.org/trunk@14154 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 487f44495f..2a689d328a 100644 --- a/deal.II/examples/step-23/step-23.cc +++ b/deal.II/examples/step-23/step-23.cc @@ -44,7 +44,6 @@ #include #include -#include // Here are the only three include // files of some new interest: The @@ -545,11 +544,10 @@ void WaveEquation::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); }