Commit ad056e67 authored by Tobias WEBER's avatar Tobias WEBER

qapp argc bugfix

parent cb2fc974
...@@ -118,7 +118,10 @@ protected: ...@@ -118,7 +118,10 @@ protected:
protected: protected:
public: public:
TakAppl(int argc, char** argv) : QApplication(argc, argv) {} // need a reference to argc, because the QApplication constructor
// would otherwise take the temporary stack variable
// see: https://doc.qt.io/qt-5/qapplication.html#QApplication
TakAppl(/*const*/ int& argc, /*const*/ char** argv) : QApplication(argc, argv) {}
virtual ~TakAppl() {} virtual ~TakAppl() {}
void SetTakDlg(std::shared_ptr<TazDlg> pDlg) { m_pTakDlg = pDlg; } void SetTakDlg(std::shared_ptr<TazDlg> pDlg) { m_pTakDlg = pDlg; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment