From 5cb62f78d9388ba8e477f58dcd654bc3463f20dd Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 30 May 2022 11:17:56 -0600 Subject: [PATCH] Modernize code. --- source/base/data_out_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index a6794da7ba..5844e00262 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -8007,7 +8007,7 @@ DataOutInterface::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 << "\n"; xdmf_file << "\n"; -- 2.39.5