virtual destructors for tcpBase derived classes, readarray clear removed as unneeded
authordisplacer
Thu, 08 Feb 2007 20:54:14 +0000
changeset 419 fdeed9718e6b
parent 418 595a868918be
child 420 6cdfc07dceed
virtual destructors for tcpBase derived classes, readarray clear removed as unneeded
QTfrontend/game.cpp
QTfrontend/game.h
QTfrontend/tcpBase.cpp
QTfrontend/tcpBase.h
--- a/QTfrontend/game.cpp	Thu Feb 08 20:11:11 2007 +0000
+++ b/QTfrontend/game.cpp	Thu Feb 08 20:54:14 2007 +0000
@@ -44,6 +44,10 @@
 	seed = "";
 }
 
+HWGame::~HWGame()
+{
+}
+
 void HWGame::onClientDisconnect()
 {
 	SaveDemo(cfgdir->absolutePath() + "/Demos/LastRound.hwd_" + cProtoVer);
--- a/QTfrontend/game.h	Thu Feb 08 20:11:11 2007 +0000
+++ b/QTfrontend/game.h	Thu Feb 08 20:54:14 2007 +0000
@@ -46,6 +46,7 @@
 	Q_OBJECT
 public:
 	HWGame(GameUIConfig * config, GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget = 0);
+	virtual ~HWGame();
 	void AddTeam(const QString & team);
 	void PlayDemo(const QString & demofilename);
 	void StartLocal();
--- a/QTfrontend/tcpBase.cpp	Thu Feb 08 20:11:11 2007 +0000
+++ b/QTfrontend/tcpBase.cpp	Thu Feb 08 20:54:14 2007 +0000
@@ -28,6 +28,10 @@
 QList<TCPBase*> srvsList;
 QPointer<QTcpServer> TCPBase::IPCServer(0);
 
+TCPBase::~TCPBase()
+{
+}
+
 TCPBase::TCPBase(bool demoMode) :
   m_isDemoMode(demoMode),
   IPCSocket(0)
@@ -76,8 +80,6 @@
 {
   onClientDisconnect();
 
-  readbuffer.clear();
-
   if(srvsList.size()==1) srvsList.pop_front();
   emit isReadyNow();
   deleteLater();
--- a/QTfrontend/tcpBase.h	Thu Feb 08 20:11:11 2007 +0000
+++ b/QTfrontend/tcpBase.h	Thu Feb 08 20:54:14 2007 +0000
@@ -38,6 +38,7 @@
 
  public:
   TCPBase(bool demoMode);
+  virtual ~TCPBase();
 
  signals:
   void isReadyNow();