diff --git a/src/appmanager.cpp b/src/appmanager.cpp index 1e16a2e12..dafc11c3d 100644 --- a/src/appmanager.cpp +++ b/src/appmanager.cpp @@ -162,7 +162,7 @@ bool toxURIEventHandler(const QByteArray& eventData, void* userData) } } // namespace -AppManager::AppManager(int argc, char** argv) +AppManager::AppManager(int& argc, char** argv) : qapp((preConstructionInitialization(), new QApplication(argc, argv))) , messageBoxManager(new MessageBoxManager(nullptr)) , settings(new Settings(*messageBoxManager)) diff --git a/src/appmanager.h b/src/appmanager.h index 5deed3011..0eb50d39c 100644 --- a/src/appmanager.h +++ b/src/appmanager.h @@ -36,7 +36,7 @@ class AppManager : public QObject Q_OBJECT public: - AppManager(int argc, char** argv); + AppManager(int& argc, char** argv); ~AppManager(); int run();