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>
This commit is contained in:
parent
21ee440e5f
commit
99acff1b05
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user