diff system/System.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 1d439494604c
children cc27f35aa75c
line wrap: on
line diff
--- a/system/System.cpp	Tue Nov 26 11:16:37 2013 +0000
+++ b/system/System.cpp	Tue Nov 26 13:35:08 2013 +0000
@@ -155,8 +155,8 @@
         lMEMORYSTATUSEX lms;
 	lms.dwLength = sizeof(lms);
 	if (!ex(&lms)) {
-            std::cerr << "WARNING: GlobalMemoryStatusEx failed: error code "
-                      << GetLastError() << std::endl;
+            cerr << "WARNING: GlobalMemoryStatusEx failed: error code "
+                      << GetLastError() << endl;
             return;
         }
         wavail = lms.ullAvailPhys;
@@ -220,8 +220,8 @@
             QString unit = "kB";
             if (elements.size() > 2) unit = elements[2];
             int size = elements[1].toInt();
-//            std::cerr << "have size \"" << size << "\", unit \""
-//                      << unit << "\"" << std::endl;
+//            cerr << "have size \"" << size << "\", unit \""
+//                      << unit << "\"" << endl;
             if (unit.toLower() == "gb") size = size * 1024;
             else if (unit.toLower() == "mb") size = size;
             else if (unit.toLower() == "kb") size = size / 1024;
@@ -254,8 +254,8 @@
         if (a > INT_MAX) a = INT_MAX;
         return int(a);
     } else {
-        std::cerr << "WARNING: GetDiskFreeSpaceEx failed: error code "
-                  << GetLastError() << std::endl;
+        cerr << "WARNING: GetDiskFreeSpaceEx failed: error code "
+                  << GetLastError() << endl;
         return -1;
     }
 #else
@@ -263,7 +263,7 @@
     if (!statvfs(path, &buf)) {
         // do the multiplies and divides in this order to reduce the
         // likelihood of arithmetic overflow
-//        std::cerr << "statvfs(" << path << ") says available: " << buf.f_bavail << ", block size: " << buf.f_bsize << std::endl;
+//        cerr << "statvfs(" << path << ") says available: " << buf.f_bavail << ", block size: " << buf.f_bsize << endl;
         uint64_t available = ((buf.f_bavail / 1024) * buf.f_bsize) / 1024;
         if (available > INT_MAX) available = INT_MAX;
         return int(available);