summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NetClientConfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/NetClientConfig.cpp')
-rw-r--r--Stars45/NetClientConfig.cpp11
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);
}
}