]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not convert a std::string to char* just to convert it back. 6530/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 8 May 2018 09:16:28 +0000 (17:16 +0800)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 8 May 2018 10:44:52 +0000 (18:44 +0800)
examples/step-42/step-42.cc

index c85bc0621a7946c94b428c18b6a8e3a8828ceac2..e3a98014fbcb86bd1730e8152ee13a9cb52d66f0 100644 (file)
@@ -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();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.