diff data/fileio/MP3FileReader.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 1424aa29ae95
children f3cda3280398 59e7fe1b1003
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.cpp	Tue Nov 26 11:16:37 2013 +0000
+++ b/data/fileio/MP3FileReader.cpp	Tue Nov 26 13:35:08 2013 +0000
@@ -95,8 +95,8 @@
             ::close(fd);
             return;
         } else if (sz == 0) {
-            std::cerr << QString("MP3FileReader::MP3FileReader: Warning: reached EOF after only %1 of %2 bytes")
-                .arg(offset).arg(m_fileSize) << std::endl;
+            cerr << QString("MP3FileReader::MP3FileReader: Warning: reached EOF after only %1 of %2 bytes")
+                .arg(offset).arg(m_fileSize) << endl;
             m_fileSize = offset;
             break;
         }
@@ -137,11 +137,11 @@
             usleep(10);
         }
         
-        std::cerr << "MP3FileReader ctor: exiting with file rate = " << m_fileRate << std::endl;
+        cerr << "MP3FileReader ctor: exiting with file rate = " << m_fileRate << endl;
     }
 
     if (m_error != "") {
-        std::cerr << "MP3FileReader::MP3FileReader(\"" << m_path << "\"): ERROR: " << m_error << std::endl;
+        cerr << "MP3FileReader::MP3FileReader(\"" << m_path << "\"): ERROR: " << m_error << endl;
     }
 }
 
@@ -243,7 +243,7 @@
         
     id3_utf8_t *u8str = id3_ucs4_utf8duplicate(ustr);
     if (!u8str) {
-        std::cerr << "MP3FileReader::loadTags: ERROR: Internal error: Failed to convert UCS4 to UTF8 in ID3 title" << std::endl;
+        cerr << "MP3FileReader::loadTags: ERROR: Internal error: Failed to convert UCS4 to UTF8 in ID3 title" << endl;
         return "";
     }
         
@@ -321,7 +321,7 @@
     if (length > ID3_TAG_QUERYSIZE) {
         int taglen = id3_tag_query(start, ID3_TAG_QUERYSIZE);
         if (taglen > 0) {
-//            std::cerr << "ID3 tag length to skip: " << taglen << std::endl;
+//            cerr << "ID3 tag length to skip: " << taglen << endl;
             start += taglen;
             length -= taglen;
         }