diff data/model/WritableWaveFileModel.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 e43368ec5ff0
children 06f13a3b9e9e
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp	Thu May 12 16:56:08 2011 +0100
+++ b/data/model/WritableWaveFileModel.cpp	Thu May 12 17:31:24 2011 +0100
@@ -54,7 +54,7 @@
 
     m_writer = new WavFileWriter(path, sampleRate, channels);
     if (!m_writer->isOK()) {
-        std::cerr << "WritableWaveFileModel: Error in creating WAV file writer: " << m_writer->getError().toStdString() << std::endl;
+        std::cerr << "WritableWaveFileModel: Error in creating WAV file writer: " << m_writer->getError() << std::endl;
         delete m_writer; 
         m_writer = 0;
         return;
@@ -110,7 +110,7 @@
 #endif
 
     if (!m_writer->writeSamples(samples, count)) {
-        std::cerr << "ERROR: WritableWaveFileModel::addSamples: writer failed: " << m_writer->getError().toStdString() << std::endl;
+        std::cerr << "ERROR: WritableWaveFileModel::addSamples: writer failed: " << m_writer->getError() << std::endl;
         return false;
     }