From 153c9aa5f5565b2f4cce064cef592fbb8921bdb9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz>
Date: Tue, 28 Feb 2017 11:57:38 +0100
Subject: [PATCH] Replaced std::endl in MatrixWriter to remove implicit I/O
 synchronizations

---
 src/TNL/Matrices/MatrixWriter_impl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/TNL/Matrices/MatrixWriter_impl.h b/src/TNL/Matrices/MatrixWriter_impl.h
index 1db1a9df9e..40368d0dd9 100644
--- a/src/TNL/Matrices/MatrixWriter_impl.h
+++ b/src/TNL/Matrices/MatrixWriter_impl.h
@@ -26,7 +26,7 @@ bool MatrixWriter< Matrix >::writeToGnuplot( std::ostream& str,
       {
          RealType elementValue = matrix.getElement( row, column );
          if(  elementValue != ( RealType ) 0.0 )
-            str << column << " " << row << " " << elementValue << std::endl;
+            str << column << " " << row << " " << elementValue << "\n";
       }
       if( verbose )
         std::cout << "Drawing the row " << row << "      \r" << std::flush;
@@ -86,7 +86,7 @@ bool MatrixWriter< Matrix >::writeEpsBody( std::ostream& str,
          {
             str << ( column - lastColumn ) * elementSize
                 << " " << -( row - lastRow ) * elementSize
-                << " translate newpath 0 0 " << elementSize << " " << elementSize << " rectstroke" << std::endl;
+                << " translate newpath 0 0 " << elementSize << " " << elementSize << " rectstroke\n";
             lastColumn = column;
             lastRow = row;
          }
-- 
GitLab