comparison audioio/AudioGenerator.cpp @ 294:933b5aed341a

Drop toStdString() and toLocal8Bit().data(), with debug header we can stream QStrings
author Chris Cannam
date Tue, 26 Nov 2013 14:14:25 +0000
parents 068235cf5bf7
children 14b1768e5406
comparison
equal deleted inserted replaced
293:068235cf5bf7 294:933b5aed341a
93 QFile file(sampleResourceDir.filePath(fileName)); 93 QFile file(sampleResourceDir.filePath(fileName));
94 QString target = QDir(m_sampleDir).filePath(fileName); 94 QString target = QDir(m_sampleDir).filePath(fileName);
95 95
96 if (!file.copy(target)) { 96 if (!file.copy(target)) {
97 cerr << "WARNING: AudioGenerator::getSampleDir: " 97 cerr << "WARNING: AudioGenerator::getSampleDir: "
98 << "Unable to copy " << fileName.toStdString() 98 << "Unable to copy " << fileName
99 << " into temporary directory \"" 99 << " into temporary directory \""
100 << m_sampleDir << "\"" << endl; 100 << m_sampleDir << "\"" << endl;
101 } else { 101 } else {
102 QFile tf(target); 102 QFile tf(target);
103 tf.setPermissions(tf.permissions() | 103 tf.setPermissions(tf.permissions() |