From a12e588079700d55a0b788fea2df7727c2e41f52 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 27 Mar 2022 17:42:26 +0200 Subject: Removed MemDebug from FoundationEx --- Stars45/NetClientConfig.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Stars45/NetClientConfig.cpp') 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); } } -- cgit v1.1