Mercurial > hg > svcore
comparison data/fileio/WavFileWriter.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 | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
842:23d3a6eca5c3 | 843:e802e550a1f2 |
---|---|
43 if (mode == WriteToTemporary) { | 43 if (mode == WriteToTemporary) { |
44 m_temp = new TempWriteFile(m_path); | 44 m_temp = new TempWriteFile(m_path); |
45 m_file = sf_open(m_temp->getTemporaryFilename().toLocal8Bit(), | 45 m_file = sf_open(m_temp->getTemporaryFilename().toLocal8Bit(), |
46 SFM_WRITE, &fileInfo); | 46 SFM_WRITE, &fileInfo); |
47 if (!m_file) { | 47 if (!m_file) { |
48 std::cerr << "WavFileWriter: Failed to open file (" | 48 cerr << "WavFileWriter: Failed to open file (" |
49 << sf_strerror(m_file) << ")" << std::endl; | 49 << sf_strerror(m_file) << ")" << endl; |
50 m_error = QString("Failed to open audio file '%1' for writing") | 50 m_error = QString("Failed to open audio file '%1' for writing") |
51 .arg(m_temp->getTemporaryFilename()); | 51 .arg(m_temp->getTemporaryFilename()); |
52 } | 52 } |
53 } else { | 53 } else { |
54 m_file = sf_open(m_path.toLocal8Bit(), SFM_WRITE, &fileInfo); | 54 m_file = sf_open(m_path.toLocal8Bit(), SFM_WRITE, &fileInfo); |
55 if (!m_file) { | 55 if (!m_file) { |
56 std::cerr << "WavFileWriter: Failed to open file (" | 56 cerr << "WavFileWriter: Failed to open file (" |
57 << sf_strerror(m_file) << ")" << std::endl; | 57 << sf_strerror(m_file) << ")" << endl; |
58 m_error = QString("Failed to open audio file '%1' for writing") | 58 m_error = QString("Failed to open audio file '%1' for writing") |
59 .arg(m_path); | 59 .arg(m_path); |
60 } | 60 } |
61 } | 61 } |
62 } catch (FileOperationFailed &f) { | 62 } catch (FileOperationFailed &f) { |