comparison data/fileio/BZipFileDevice.cpp @ 686:b4a8d8221eaf debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:24 +0100
parents 8ee6cf529c4e
children 06f13a3b9e9e
comparison
equal deleted inserted replaced
685:99222d4bfc78 686:b4a8d8221eaf
28 { 28 {
29 } 29 }
30 30
31 BZipFileDevice::~BZipFileDevice() 31 BZipFileDevice::~BZipFileDevice()
32 { 32 {
33 // std::cerr << "BZipFileDevice::~BZipFileDevice(" << m_fileName.toStdString() << ")" << std::endl; 33 // std::cerr << "BZipFileDevice::~BZipFileDevice(" << m_fileName << ")" << std::endl;
34 if (m_bzFile) close(); 34 if (m_bzFile) close();
35 } 35 }
36 36
37 bool 37 bool
38 BZipFileDevice::isOK() const 38 BZipFileDevice::isOK() const
86 setErrorString(tr("Failed to open bzip2 stream for writing")); 86 setErrorString(tr("Failed to open bzip2 stream for writing"));
87 m_ok = false; 87 m_ok = false;
88 return false; 88 return false;
89 } 89 }
90 90
91 // std::cerr << "BZipFileDevice: opened \"" << m_fileName.toStdString() << "\" for writing" << std::endl; 91 // std::cerr << "BZipFileDevice: opened \"" << m_fileName << "\" for writing" << std::endl;
92 92
93 setErrorString(QString()); 93 setErrorString(QString());
94 setOpenMode(mode); 94 setOpenMode(mode);
95 return true; 95 return true;
96 } 96 }
113 setErrorString(tr("Failed to open bzip2 stream for reading")); 113 setErrorString(tr("Failed to open bzip2 stream for reading"));
114 m_ok = false; 114 m_ok = false;
115 return false; 115 return false;
116 } 116 }
117 117
118 // std::cerr << "BZipFileDevice: opened \"" << m_fileName.toStdString() << "\" for reading" << std::endl; 118 // std::cerr << "BZipFileDevice: opened \"" << m_fileName << "\" for reading" << std::endl;
119 119
120 m_atEnd = false; 120 m_atEnd = false;
121 121
122 setErrorString(QString()); 122 setErrorString(QString());
123 setOpenMode(mode); 123 setOpenMode(mode);