--- a/QTfrontend/hwform.h Fri Oct 28 13:10:46 2011 +0200
+++ b/QTfrontend/hwform.h Fri Oct 28 19:20:35 2011 +0400
@@ -22,6 +22,7 @@
#include <QMainWindow>
#include <QStack>
#include <QTime>
+#include <QPointer>
#include "netserver.h"
#include "game.h"
@@ -156,11 +157,11 @@
ID_PAGE_DRAWMAP = 20,
ID_PAGE_DATADOWNLOAD = 21
};
- HWGame * game;
- HWNetServer* pnetserver;
- HWNetRegisterServer* pRegisterServer;
- HWTeam * editedTeam;
- HWNewNet * hwnet;
+ QPointer<HWGame> game;
+ QPointer<HWNetServer> pnetserver;
+ QPointer<HWNetRegisterServer> pRegisterServer;
+ QPointer<HWTeam> editedTeam;
+ QPointer<HWNewNet> hwnet;
HWNamegen * namegen;
AmmoSchemeModel * ammoSchemeModel;
QStack<int> PagesStack;