comparison transform/FileFeatureWriter.cpp @ 844:f5cd33909744

Drop toStdString, with debug header we can stream QStrings
author Chris Cannam
date Tue, 26 Nov 2013 13:43:31 +0000
parents 1424aa29ae95
children 2104ea2204d2
comparison
equal deleted inserted replaced
843:e802e550a1f2 844:f5cd33909744
274 QFile *file = new QFile(filename); 274 QFile *file = new QFile(filename);
275 QIODevice::OpenMode mode = (QIODevice::WriteOnly); 275 QIODevice::OpenMode mode = (QIODevice::WriteOnly);
276 if (m_append) mode |= QIODevice::Append; 276 if (m_append) mode |= QIODevice::Append;
277 277
278 if (!file->open(mode)) { 278 if (!file->open(mode)) {
279 cerr << "FileFeatureWriter: ERROR: Failed to open output file \"" << filename.toStdString() 279 cerr << "FileFeatureWriter: ERROR: Failed to open output file \"" << filename
280 << "\" for writing" << endl; 280 << "\" for writing" << endl;
281 delete file; 281 delete file;
282 m_files[key] = 0; 282 m_files[key] = 0;
283 throw FailedToOpenFile(filename); 283 throw FailedToOpenFile(filename);
284 } 284 }