tools/templates/main.cpp
author unc0rr
Fri, 28 Oct 2011 19:20:35 +0400
changeset 6223 cc3eb9b7230f
parent 359 59fbfc65fbda
permissions -rw-r--r--
It doesn't make much sense to make checks like 'if(game)' if you never set game to 0. Using smart pointers instead. Does it fix segfaults? Probably.

#include <QApplication>

#include "mainform.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    MyWindow *mainWin = new MyWindow;
    mainWin->show();
    return app.exec();
}