Mercurial > hg > svcore
diff data/fileio/CSVFormat.cpp @ 906:654990320867
Merge from 899:bc0ff66102a8
author | Chris Cannam |
---|---|
date | Wed, 07 May 2014 15:17:51 +0100 |
parents | 69cc0454ed72 |
children | 1974859baba5 |
line wrap: on
line diff
--- a/data/fileio/CSVFormat.cpp Wed May 07 15:17:43 2014 +0100 +++ b/data/fileio/CSVFormat.cpp Wed May 07 15:17:51 2014 +0100 @@ -66,7 +66,7 @@ QString chunk = in.readLine(); QStringList lines = chunk.split('\r', QString::SkipEmptyParts); - for (size_t li = 0; li < lines.size(); ++li) { + for (int li = 0; li < lines.size(); ++li) { QString line = lines[li]; if (line.startsWith("#") || line == "") continue; @@ -86,7 +86,7 @@ CSVFormat::guessSeparator(QString line) { char candidates[] = { ',', '\t', ' ', '|', '/', ':' }; - for (int i = 0; i < sizeof(candidates)/sizeof(candidates[0]); ++i) { + for (int i = 0; i < int(sizeof(candidates)/sizeof(candidates[0])); ++i) { if (StringBits::split(line, candidates[i], m_allowQuoting).size() >= 2) { m_separator = candidates[i]; return;