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 <memory>
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
|
||||
|
@ -9,8 +11,8 @@ int main(int argc, char* argv[])
|
|||
|
||||
QApplication kimaApp{argc, argv};
|
||||
|
||||
MainWindow mainWin{};
|
||||
mainWin.show();
|
||||
auto mainWin = std::make_unique<MainWindow>();
|
||||
mainWin->show();
|
||||
|
||||
return kimaApp.exec();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue