]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Modernize code. 13861/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 30 May 2022 17:17:56 +0000 (11:17 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 30 May 2022 17:17:56 +0000 (11:17 -0600)
source/base/data_out_base.cc

index a6794da7ba999c310faafe35767617b3a2682e23..5844e0026247a69014803254ca8f8e3631d9bb8e 100644 (file)
@@ -8007,7 +8007,7 @@ DataOutInterface<dim, spacedim>::write_xdmf_file(
   // Only rank 0 process writes the XDMF file
   if (myrank == 0)
     {
-      std::ofstream xdmf_file(filename.c_str());
+      std::ofstream xdmf_file(filename);
 
       xdmf_file << "<?xml version=\"1.0\" ?>\n";
       xdmf_file << "<!DOCTYPE Xdmf SYSTEM \"Xdmf.dtd\" []>\n";

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.