Skip to content
Snippets Groups Projects
Commit deaebd6d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

tidy ctd

parent 4c3946f4
No related branches found
No related tags found
1 merge request!349a few more warnings from clang-tidy resolved
...@@ -324,10 +324,9 @@ char CsvImportAssistant::guessSeparator() const ...@@ -324,10 +324,9 @@ char CsvImportAssistant::guessSeparator() const
// count number of occurences of each char in the file: // count number of occurences of each char in the file:
char c; char c;
std::ifstream is(m_fileName.toStdString()); std::ifstream is(m_fileName.toStdString());
while (is.get(c)) { while (is.get(c))
if (size_t(c) < 127) if (c >= 0 && c < 127)
frequencies[size_t(c)]++; frequencies[int(c)]++;
}
is.close(); is.close();
// set the guessed separator as the most frequent among the // set the guessed separator as the most frequent among the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment