From 2bc82a0eb4ff7c7fbc1fc60da9d8c519df326e2e Mon Sep 17 00:00:00 2001 From: arkpar Date: Tue, 24 Feb 2015 16:55:40 +0100 Subject: [PATCH] fixed calling QApplication constructor with temp ref --- mix/MixApplication.cpp | 2 +- mix/MixApplication.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mix/MixApplication.cpp b/mix/MixApplication.cpp index deff7c011..821167a3f 100644 --- a/mix/MixApplication.cpp +++ b/mix/MixApplication.cpp @@ -33,7 +33,7 @@ using namespace dev::mix; -MixApplication::MixApplication(int _argc, char* _argv[]): +MixApplication::MixApplication(int& _argc, char* _argv[]): QApplication(_argc, _argv), m_engine(new QQmlApplicationEngine()), m_appContext(new AppContext(m_engine.get())) { setOrganizationName(tr("Ethereum")); diff --git a/mix/MixApplication.h b/mix/MixApplication.h index 86c1126fc..acfe4e547 100644 --- a/mix/MixApplication.h +++ b/mix/MixApplication.h @@ -40,7 +40,7 @@ class MixApplication: public QApplication Q_OBJECT public: - MixApplication(int _argc, char* _argv[]); + MixApplication(int& _argc, char* _argv[]); virtual ~MixApplication(); AppContext* context() { return m_appContext.get(); } QQmlApplicationEngine* engine() { return m_engine.get(); }