summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NetLobby.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-27 17:42:26 +0200
committerAki <please@ignore.pl>2022-03-27 17:42:26 +0200
commita12e588079700d55a0b788fea2df7727c2e41f52 (patch)
tree690072569624c73af5043b3619acaab4d298b1fa /Stars45/NetLobby.cpp
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/NetLobby.cpp')
-rw-r--r--Stars45/NetLobby.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Stars45/NetLobby.cpp b/Stars45/NetLobby.cpp
index 7effc09..81eecae 100644
--- a/Stars45/NetLobby.cpp
+++ b/Stars45/NetLobby.cpp
@@ -11,7 +11,6 @@
Base Class for Multiplayer Game Lobby classes
*/
-#include "MemDebug.h"
#include "NetLobby.h"
#include "NetLobbyClient.h"
#include "NetLobbyServer.h"
@@ -118,7 +117,7 @@ NetLobby::Recv()
text = buffer;
}
else if (msg->Length() < 1024 * 1024) {
- text = new(__FILE__,__LINE__) char[msg->Length()];
+ text = new char[msg->Length()];
ZeroMemory(text, msg->Length());
CopyMemory(text, msg->Data()+2, msg->Length()-2);
}
@@ -375,7 +374,7 @@ NetLobby::ParseMsg(Text msg, List<NetLobbyParam>& params)
val = val.substring(1, val.length()-2);
}
- NetLobbyParam* param = new(__FILE__,__LINE__) NetLobbyParam(name.symbol(), val);
+ NetLobbyParam* param = new NetLobbyParam(name.symbol(), val);
params.append(param);
name = lexer.Get();
@@ -402,7 +401,7 @@ void
NetLobby::AddChat(NetUser* user, const char* msg, bool route)
{
if (user && msg && *msg)
- chat_log.append(new(__FILE__,__LINE__) NetChatEntry(user, msg));
+ chat_log.append(new NetChatEntry(user, msg));
}
List<NetChatEntry>&
@@ -431,7 +430,7 @@ void
NetLobby::AddUnitMap(MissionElement* elem, int index)
{
if (elem)
- unit_map.append(new(__FILE__,__LINE__) NetUnitEntry(elem, index));
+ unit_map.append(new NetUnitEntry(elem, index));
}
List<NetUnitEntry>&