aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-desktop-main.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-21 20:57:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-24 08:34:14 -0700
commit99acff1b051994cf10c165dd199ee7da7f36cba2 (patch)
tree0ae283b21808eeefc6da3e8454db00aa1f37bb9a /subsurface-desktop-main.cpp
parent21ee440e5f96a2f7ddc810ced89f9ea1e7174bae (diff)
downloadsubsurface-99acff1b051994cf10c165dd199ee7da7f36cba2.tar.gz
mobile: application variable unused in main
Simplify starting application. instead of declaring var. application, and the setting unused, simple do the "new QApplication" without a variable. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r--subsurface-desktop-main.cpp3
1 files changed, 1 insertions, 2 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();