comparison data/fileio/CSVFileReader.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 e802e550a1f2
children 69cc0454ed72
comparison
equal deleted inserted replaced
843:e802e550a1f2 844:f5cd33909744
112 } 112 }
113 113
114 if (!ok) { 114 if (!ok) {
115 if (m_warnings < warnLimit) { 115 if (m_warnings < warnLimit) {
116 cerr << "WARNING: CSVFileReader::load: " 116 cerr << "WARNING: CSVFileReader::load: "
117 << "Bad time format (\"" << s.toStdString() 117 << "Bad time format (\"" << s
118 << "\") in data line " 118 << "\") in data line "
119 << lineno+1 << endl; 119 << lineno+1 << endl;
120 } else if (m_warnings == warnLimit) { 120 } else if (m_warnings == warnLimit) {
121 cerr << "WARNING: Too many warnings" << endl; 121 cerr << "WARNING: Too many warnings" << endl;
122 } 122 }
332 332
333 if (!ok) { 333 if (!ok) {
334 if (warnings < warnLimit) { 334 if (warnings < warnLimit) {
335 cerr << "WARNING: CSVFileReader::load: " 335 cerr << "WARNING: CSVFileReader::load: "
336 << "Non-numeric value \"" 336 << "Non-numeric value \""
337 << list[i].toStdString() 337 << list[i]
338 << "\" in data line " << lineno+1 338 << "\" in data line " << lineno+1
339 << ":" << endl; 339 << ":" << endl;
340 cerr << line << endl; 340 cerr << line << endl;
341 ++warnings; 341 ++warnings;
342 } else if (warnings == warnLimit) { 342 } else if (warnings == warnLimit) {