tests: Normalise signature of argc/argv to match QApplication's

Fixes crash when passing "platform -xcb", because argc was being
passed by value, decremented in QApplication, then going out
of bounds in QTest
This commit is contained in:
Sergio Martins
2022-05-09 15:16:36 +01:00
parent 5d8da8aab6
commit 9173226be7
9 changed files with 9 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ public:
#ifdef DOCKS_DEVELOPER_MODE
static bool isGammaray();
explicit Platform_qt(int argc, char *argv[]);
explicit Platform_qt(int &argc, char **argv);
bool tests_waitForWindowActive(std::shared_ptr<Window>, int timeout = 5000) const override;
bool tests_waitForEvent(QObject *w, QEvent::Type type, int timeout = 5000) const override;
bool tests_waitForEvent(View *, QEvent::Type type, int timeout = 5000) const override;