]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use '\n' instead of std::endl and add a std::flush at the end.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 7 Sep 2012 20:07:42 +0000 (20:07 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 7 Sep 2012 20:07:42 +0000 (20:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@26249 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/table_handler.cc

index 32d26974c45896d82c6da664670e0d13d7cf1ed2..6a98b15fa3f0e8962511b40804ffff9a3ee66b38 100644 (file)
@@ -377,7 +377,7 @@ void TableHandler::write_text(std::ostream &out,
         {
           // print column key with column number. enumerate
           // columns starting with 1
-          out << "# " << j+1 << ": " << key << std::endl;
+          out << "# " << j+1 << ": " << key << '\n';
           break;
         }
 
@@ -432,8 +432,9 @@ void TableHandler::write_text(std::ostream &out,
                                            // pad after this column
           out << " ";
         }
-      out << std::endl;
+      out << '\n';
     }
+  out << std::flush;
 }
 
 

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.