summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NetAdminServer.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/NetAdminServer.cpp
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/NetAdminServer.cpp')
-rw-r--r--Stars45/NetAdminServer.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/Stars45/NetAdminServer.cpp b/Stars45/NetAdminServer.cpp
index 4ea6c9b..b5efad7 100644
--- a/Stars45/NetAdminServer.cpp
+++ b/Stars45/NetAdminServer.cpp
@@ -12,7 +12,6 @@
*/
-#include "MemDebug.h"
#include "NetAdminServer.h"
#include "NetLobbyServer.h"
#include "NetServerConfig.h"
@@ -70,7 +69,7 @@ public:
}
else if (name == admin_name && pass == admin_pass) {
- user = new(__FILE__,__LINE__) NetUser(name);
+ user = new NetUser(name);
user->SetAddress(request.GetClientAddr());
if (session)
@@ -432,7 +431,7 @@ NetAdminServer*
NetAdminServer::GetInstance(WORD port)
{
if (!net_Admin_server && port > 0)
- net_Admin_server = new(__FILE__,__LINE__) NetAdminServer(port);
+ net_Admin_server = new NetAdminServer(port);
return net_Admin_server;
}
@@ -458,24 +457,24 @@ NetAdminServer::GetServlet(HttpRequest& request)
path.setSensitive(false);
if (path.indexOf("/login") == 0)
- return new(__FILE__,__LINE__) NetAdminLogin;
+ return new NetAdminLogin;
if (path.indexOf("/chat") == 0)
- return new(__FILE__,__LINE__) NetAdminChat;
+ return new NetAdminChat;
if (path.indexOf("/server") == 0)
- return new(__FILE__,__LINE__) NetAdminServerMgr;
+ return new NetAdminServerMgr;
if (path.indexOf("/file") == 0)
- return new(__FILE__,__LINE__) NetAdminFile;
+ return new NetAdminFile;
if (path.indexOf("/user") == 0)
- return new(__FILE__,__LINE__) NetAdminUserList;
+ return new NetAdminUserList;
if (path.indexOf("/ban") == 0)
- return new(__FILE__,__LINE__) NetAdminBanUser;
+ return new NetAdminBanUser;
- return new(__FILE__,__LINE__) NetAdminServlet;
+ return new NetAdminServlet;
}
// +-------------------------------------------------------------------+