summaryrefslogtreecommitdiffstats
path: root/src/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/main.cpp')
-rw-r--r--src/client/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp
index eefd0d8..cb7aea6 100644
--- a/src/client/main.cpp
+++ b/src/client/main.cpp
@@ -9,19 +9,18 @@ int main(int argc, char** argv)
{
ClientApp app(argc, argv);
- qsrand(uint(QDateTime::currentMSecsSinceEpoch()));
/* here we handle the arguments that were not handled by ClientApp */
- for (QString a : app.arguments()) {
+ for (const auto &a : app.arguments()) {
if (a == "--usage" || a == "--help") {
- qStdout() << "Usage: pvsclient [--exam-mode] [--auto|--session=xxx|\"\"]" << endl;
+ qStdout() << "Usage: pvsclient [--exam-mode] [--auto|--session=xxx|\"\"]" << Qt::endl;
exit(0);
} else if (a.contains("pvsclient")) {
/* do nothing */
} else {
- qStdout() << "Unknown argument: " << a << endl;
+ qStdout() << "Unknown argument: " << a << Qt::endl;
exit(1);
}
}
- return app.exec();
+ return ClientApp::exec();
}