mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
2 changed files with 6 additions and 4 deletions
|
@ -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…
Reference in a new issue