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, 6 insertions, 3 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp
index eefd0d8..6a7c2a0 100644
--- a/src/client/main.cpp
+++ b/src/client/main.cpp
@@ -2,6 +2,10 @@
#include "clientapp/clientapp.h"
#include "util/util.h"
+// Remove when we don't support Ubuntu 20.04 anymore
+#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
+#define endl Qt::endl
+#endif
/* instantiates the ClientApp, handles some extra parameters and starts the
* main-loop of ClientApp */
@@ -9,10 +13,9 @@ 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;
exit(0);
@@ -23,5 +26,5 @@ int main(int argc, char** argv)
exit(1);
}
}
- return app.exec();
+ return ClientApp::exec();
}