Commit 695567cd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port endl to QLatin1Char('\n')

parent 7f7106a7
......@@ -84,11 +84,13 @@ QTextStream & Ratio::display(QTextStream & str) const
{
int tmp_width = str.fieldWidth();
str << qSetFieldWidth(5) << " ";
str << qSetFieldWidth(5) << m_numerator << endl;
str << qSetFieldWidth(5) << m_numerator << QLatin1Char('\n');
str << qSetFieldWidth(tmp_width) << " ";
str << " ----- " << endl;
str << " ----- " << QLatin1Char('\n');
str << qSetFieldWidth(tmp_width) << " ";
return str << qSetFieldWidth(5) << m_denominator;
str << qSetFieldWidth(5) << m_denominator;
str.flush();
return str;
}
/* return the numerator */
......
......@@ -207,7 +207,7 @@ QTextStream & Task::display(QTextStream & str)
ratio_pointer != ratio_vector.end(); ++ratio_pointer) {
str << qSetFieldWidth(5) << ratio_pointer->numerator() << " ";
}
str << endl;
str << QLatin1Char('\n');
pweite = weite;
while (pweite-- > 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment