Mercurial > hg > svcore
comparison data/model/WritableWaveFileModel.cpp @ 290:92e8dbde73cd
* Revert revision 713. We do like QStrings after all.
author | Chris Cannam |
---|---|
date | Fri, 24 Aug 2007 11:41:48 +0000 |
parents | 7b96b3bd4bae |
children | 5877d68815c7 |
comparison
equal
deleted
inserted
replaced
289:3020904de772 | 290:92e8dbde73cd |
---|---|
56 delete m_writer; | 56 delete m_writer; |
57 m_writer = 0; | 57 m_writer = 0; |
58 return; | 58 return; |
59 } | 59 } |
60 | 60 |
61 m_reader = new WavFileReader(m_writer->getPath().toStdString(), true); | 61 m_reader = new WavFileReader(m_writer->getPath(), true); |
62 if (m_reader->getError() != "") { | 62 if (!m_reader->getError().isEmpty()) { |
63 std::cerr << "WritableWaveFileModel: Error in creating wave file reader" << std::endl; | 63 std::cerr << "WritableWaveFileModel: Error in creating wave file reader" << std::endl; |
64 delete m_reader; | 64 delete m_reader; |
65 m_reader = 0; | 65 m_reader = 0; |
66 return; | 66 return; |
67 } | 67 } |