Commit 2a25010d authored by Laurent Montel's avatar Laurent Montel 😁

Port endl to \n as it's namespaced in Qt5.15.

it's not a problem here as it's a qfile which is flush when it will be
deleted
parent 2b63a016
......@@ -692,7 +692,7 @@ PlotAppearance & Function::plotAppearance( PMode plot )
return integral;
}
qCritical() << "Unknown plot " << plot << endl;
qCritical() << "Unknown plot " << plot;
return f0;
}
PlotAppearance Function::plotAppearance( PMode plot ) const
......@@ -713,7 +713,7 @@ PlotAppearance Function::plotAppearance( PMode plot ) const
return integral;
}
qCritical() << "Unknown plot " << plot << endl;
qCritical() << "Unknown plot " << plot;
return f0;
}
......
......@@ -315,7 +315,7 @@ void KParameterEditor::cmdExport_clicked()
QListWidgetItem * it = m_mainWidget->list->item( i );
stream << it->text();
if ( i < m_mainWidget->list->count()-1 )
stream << endl; //only write a new line if there are more text
stream << '\n'; //only write a new line if there are more text
}
stream.flush();
}
......@@ -345,7 +345,7 @@ void KParameterEditor::cmdExport_clicked()
QListWidgetItem * it = m_mainWidget->list->item( i );
stream << it->text();
if ( i < m_mainWidget->list->count()-1 )
stream << endl; //only write a new line if there are more text
stream << '\n'; //only write a new line if there are more text
}
file.close();
}
......
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