Replace deprecated endl with Qt::endl

This commit is contained in:
Roland Rossgotterer
2020-04-02 10:54:07 +02:00
committed by Mat Sutcliffe
parent 1e633a5704
commit 9fa3221abc
27 changed files with 346 additions and 346 deletions

View File

@@ -44,14 +44,14 @@ int main(int argc, char *argv[])
QElapsedTimer t;
while (run)
{
streamOut << "Run samples:" << endl;
streamOut << "1 .. FS common / Simulation (with cfg files reading)" << endl;
streamOut << "2 .. FSX" << endl;
streamOut << "3 .. Mappings" << endl;
streamOut << "4 .. vPilot rules" << endl;
streamOut << "5 .. P3D cfg files" << endl;
streamOut << "6 .. FSUIPC read" << endl;
streamOut << "x .. exit" << endl;
streamOut << "Run samples:" << Qt::endl;
streamOut << "1 .. FS common / Simulation (with cfg files reading)" << Qt::endl;
streamOut << "2 .. FSX" << Qt::endl;
streamOut << "3 .. Mappings" << Qt::endl;
streamOut << "4 .. vPilot rules" << Qt::endl;
streamOut << "5 .. P3D cfg files" << Qt::endl;
streamOut << "6 .. FSUIPC read" << Qt::endl;
streamOut << "x .. exit" << Qt::endl;
QString i = streamIn.readLine().toLower().trimmed();
t.start();
@@ -61,15 +61,15 @@ int main(int argc, char *argv[])
else if (i.startsWith("4")) { CSamplesVPilotRules::samples(streamOut, streamIn); }
else if (i.startsWith("5")) { CSamplesP3D::samplesMisc(streamOut); }
else if (i.startsWith("6")) { CSamplesFsuipc::samplesFsuipc(streamOut); }
else if (i.startsWith("x")) { run = false; streamOut << "terminating" << endl; }
else if (i.startsWith("x")) { run = false; streamOut << "terminating" << Qt::endl; }
streamOut << endl;
streamOut << endl;
streamOut << Qt::endl;
streamOut << Qt::endl;
}
streamOut << endl;
streamOut << "time elapsed: " << t.elapsed() << "ms" << endl;
streamOut << "press key to exit" << endl;
streamOut << Qt::endl;
streamOut << "time elapsed: " << t.elapsed() << "ms" << Qt::endl;
streamOut << "press key to exit" << Qt::endl;
streamIn.readLine();
return EXIT_SUCCESS;
}