From 12c7ce0dea0a9b79c5b67c9368cb4b886703915e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 8 May 2018 17:16:28 +0800 Subject: [PATCH] Do not convert a std::string to char* just to convert it back. --- examples/step-42/step-42.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5