diff options
author | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
commit | a12e588079700d55a0b788fea2df7727c2e41f52 (patch) | |
tree | 690072569624c73af5043b3619acaab4d298b1fa /Stars45/NetClientConfig.cpp | |
parent | 72bb517271dad40a440533ad0796a88247011199 (diff) | |
download | starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2 |
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/NetClientConfig.cpp')
-rw-r--r-- | Stars45/NetClientConfig.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Stars45/NetClientConfig.cpp b/Stars45/NetClientConfig.cpp index 72eb716..2fd4d1b 100644 --- a/Stars45/NetClientConfig.cpp +++ b/Stars45/NetClientConfig.cpp @@ -7,7 +7,6 @@ */ -#include "MemDebug.h" #include "NetClientConfig.h" #include "NetLobbyClient.h" @@ -49,7 +48,7 @@ void NetClientConfig::Initialize() { if (!instance) - instance = new(__FILE__,__LINE__) NetClientConfig(); + instance = new NetClientConfig(); } void @@ -73,7 +72,7 @@ NetClientConfig::AddServer(const char* name, const char* addr, WORD port, const else sprintf_s(buffer, "%s:%d", addr, port); - NetServerInfo* server = new(__FILE__,__LINE__) NetServerInfo; + NetServerInfo* server = new NetServerInfo; server->name = buffer; server->hostname = addr; server->addr = NetAddr(addr, port); @@ -154,7 +153,7 @@ NetClientConfig::Load() blocklen = ftell(f); ::fseek(f, 0, SEEK_SET); - block = new(__FILE__,__LINE__) BYTE[blocklen+1]; + block = new BYTE[blocklen+1]; block[blocklen] = 0; ::fread(block, blocklen, 1, f); @@ -166,7 +165,7 @@ NetClientConfig::Load() servers.destroy(); - Parser parser(new(__FILE__,__LINE__) BlockReader((const char*) block, blocklen)); + Parser parser(new BlockReader((const char*) block, blocklen)); Term* term = parser.ParseTerm(); if (!term) { @@ -281,7 +280,7 @@ NetClientConfig::CreateConnection() } if (addr.IPAddr() && addr.Port() && !conn) { - conn = new(__FILE__,__LINE__) NetLobbyClient; // (addr); + conn = new NetLobbyClient; // (addr); } } |