diff base/ProgressPrinter.cpp @ 843:e802e550a1f2

Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author Chris Cannam
date Tue, 26 Nov 2013 13:35:08 +0000
parents 076dcd2ce209
children f5cd33909744
line wrap: on
line diff
--- a/base/ProgressPrinter.cpp	Tue Nov 26 11:16:37 2013 +0000
+++ b/base/ProgressPrinter.cpp	Tue Nov 26 13:35:08 2013 +0000
@@ -17,6 +17,8 @@
 
 #include <iostream>
 
+#include "Debug.h"
+
 ProgressPrinter::ProgressPrinter(QString message, QObject *parent) :
     ProgressReporter(parent),
     m_prefix(message),
@@ -31,9 +33,9 @@
 ProgressPrinter::~ProgressPrinter()
 {
     if (m_lastProgress > 0 && m_lastProgress != 100) {
-        std::cerr << "\r\n";
+        cerr << "\r\n";
     }
-//    std::cerr << "(progress printer dtor)" << std::endl;
+//    cerr << "(progress printer dtor)" << endl;
 }
 
 bool
@@ -60,23 +62,23 @@
 void
 ProgressPrinter::done()
 {
-    std::cerr << "\r"
+    cerr << "\r"
               << m_prefix.toStdString() 
               << (m_prefix == "" ? "" : " ")
-              << "Done" << std::endl;
+              << "Done" << endl;
 }
 
 void
 ProgressPrinter::setProgress(int progress)
 {
     if (progress == m_lastProgress) return;
-    std::cerr << "\r"
+    cerr << "\r"
               << m_prefix.toStdString() 
               << (m_prefix == "" ? "" : " ");
     if (m_definite) {
-        std::cerr << progress << "%";
+        cerr << progress << "%";
     } else {
-        std::cerr << "|/-\\"[progress % 4];
+        cerr << "|/-\\"[progress % 4];
     }
     m_lastProgress = progress;
 }