Browse Source

fixed calling QApplication constructor with temp ref

cl-refactor
arkpar 10 years ago
parent
commit
2bc82a0eb4
  1. 2
      mix/MixApplication.cpp
  2. 2
      mix/MixApplication.h

2
mix/MixApplication.cpp

@ -33,7 +33,7 @@
using namespace dev::mix; 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())) QApplication(_argc, _argv), m_engine(new QQmlApplicationEngine()), m_appContext(new AppContext(m_engine.get()))
{ {
setOrganizationName(tr("Ethereum")); setOrganizationName(tr("Ethereum"));

2
mix/MixApplication.h

@ -40,7 +40,7 @@ class MixApplication: public QApplication
Q_OBJECT Q_OBJECT
public: public:
MixApplication(int _argc, char* _argv[]); MixApplication(int& _argc, char* _argv[]);
virtual ~MixApplication(); virtual ~MixApplication();
AppContext* context() { return m_appContext.get(); } AppContext* context() { return m_appContext.get(); }
QQmlApplicationEngine* engine() { return m_engine.get(); } QQmlApplicationEngine* engine() { return m_engine.get(); }

Loading…
Cancel
Save