use unique pointer
This commit is contained in:
parent
5ebb7b3e67
commit
a490dafb02
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,8 +11,8 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
QApplication kimaApp{argc, argv};
|
QApplication kimaApp{argc, argv};
|
||||||
|
|
||||||
MainWindow mainWin{};
|
auto mainWin = std::make_unique<MainWindow>();
|
||||||
mainWin.show();
|
mainWin->show();
|
||||||
|
|
||||||
return kimaApp.exec();
|
return kimaApp.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue