aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subsurface-desktop-main.cpp3
-rw-r--r--subsurface-mobile-main.cpp7
2 files changed, 6 insertions, 4 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp
index a1d2dcb28..8d1532c08 100644
--- a/subsurface-desktop-main.cpp
+++ b/subsurface-desktop-main.cpp
@@ -40,8 +40,7 @@ int main(int argc, char **argv)
int i;
bool no_filenames = true;
QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
- QApplication *application = new QApplication(argc, argv);
- (void)application;
+ new QApplication(argc, argv);
QStringList files;
QStringList importedFiles;
QStringList arguments = QCoreApplication::arguments();
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp
index bb5e36151..878dc59ea 100644
--- a/subsurface-mobile-main.cpp
+++ b/subsurface-mobile-main.cpp
@@ -24,8 +24,11 @@ int main(int argc, char **argv)
int i;
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
- QApplication *application = new QApplication(argc, argv);
- (void)application;
+
+ // Start application
+ new QApplication(argc, argv);
+
+ // and get comand line arguments
QStringList arguments = QCoreApplication::arguments();
subsurface_console_init();