use unique pointer

This commit is contained in:
Martin Brodbeck 2018-07-14 15:54:11 +02:00
parent 5ebb7b3e67
commit a490dafb02

View file

@ -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();
}