From f6e80880b5cf1f9a80137f477df096a8c00ac817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kotiuk?= Date: Wed, 29 Sep 2021 22:38:39 +0200 Subject: [PATCH 1/2] Fix order warn --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e28ee8fd9..f60882249 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -82,8 +82,8 @@ MainWindow::MainWindow(QMap *joysticks, CommandLi AntiMicroSettings *settings, bool graphical, QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) - , trayIconMenu(nullptr) , trayIcon(nullptr) + , trayIconMenu(nullptr) { ui->setupUi(this); From a0ecd8dbda078dce9c34a64e32ee7a92fd326fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kotiuk?= Date: Wed, 29 Sep 2021 22:47:07 +0200 Subject: [PATCH 2/2] Remove unused value (residue after cleanup) --- src/sdleventreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdleventreader.cpp b/src/sdleventreader.cpp index 12a70d7ee..852a11905 100644 --- a/src/sdleventreader.cpp +++ b/src/sdleventreader.cpp @@ -172,7 +172,7 @@ int SDLEventReader::eventStatus() switch (SDL_PeepEvents(nullptr, 1, SDL_GETEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT)) { case -1: { - qCritical() << QString("SDL Error: %1").arg(QString(SDL_GetError())), true, true; + qCritical() << QString("SDL Error: %1").arg(QString(SDL_GetError())); result = 0; break;