]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not convert a std::string to a std::string. 17280/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 17 Jul 2024 15:42:18 +0000 (09:42 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 17 Jul 2024 15:42:18 +0000 (09:42 -0600)
source/distributed/tria.cc

index 9063b2253c98488e0c782aead13da26248d564e6..ff93d2e6b60a9c4c59d13a988896ad9b5eac79c5 100644 (file)
@@ -2068,7 +2068,7 @@ namespace parallel
 
       if (this->my_subdomain == 0)
         {
-          std::string   fname = std::string(filename) + ".info";
+          std::string   fname = filename + ".info";
           std::ofstream f(fname);
           f << "version nproc n_attached_fixed_size_objs n_attached_variable_size_objs n_coarse_cells"
             << std::endl

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.