From: Wolfgang Bangerth Date: Tue, 8 May 2018 09:16:28 +0000 (+0800) Subject: Do not convert a std::string to char* just to convert it back. X-Git-Tag: v9.1.0-rc1~1171^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12c7ce0dea0a9b79c5b67c9368cb4b886703915e;p=dealii.git Do not convert a std::string to char* just to convert it back. --- diff --git a/examples/step-42/step-42.cc b/examples/step-42/step-42.cc index c85bc0621a..e3a98014fb 100644 --- a/examples/step-42/step-42.cc +++ b/examples/step-42/step-42.cc @@ -2187,8 +2187,8 @@ namespace Step42 solve_newton(); - output_results((std::string("solution-") + - Utilities::int_to_string(current_refinement_cycle, 2)).c_str()); + output_results(std::string("solution-") + + Utilities::int_to_string(current_refinement_cycle, 2)); computing_timer.print_summary(); computing_timer.reset();