From 99acff1b051994cf10c165dd199ee7da7f36cba2 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 21 May 2018 20:57:10 +0200 Subject: 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 --- subsurface-desktop-main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'subsurface-desktop-main.cpp') 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(); -- cgit v1.2.3-70-g09d2