mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-10 17:33:51 +00:00
clang-modernize -use-auto convert for world/eqw_http_handler.cpp
This commit is contained in:
parent
0ed10ec102
commit
0956575292
@ -178,8 +178,7 @@ void EQWHTTPHandler::SendPage(const std::string &file) {
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
char *buffer = new char[READ_BUFFER_LEN+1];
|
||||
auto buffer = new char[READ_BUFFER_LEN + 1];
|
||||
size_t len;
|
||||
std::string to_process;
|
||||
while((len = fread(buffer, 1, READ_BUFFER_LEN, f)) > 0) {
|
||||
@ -274,7 +273,7 @@ EQWHTTPServer::EQWHTTPServer()
|
||||
}
|
||||
|
||||
void EQWHTTPServer::CreateNewConnection(uint32 ID, SOCKET in_socket, uint32 irIP, uint16 irPort) {
|
||||
EQWHTTPHandler *conn = new EQWHTTPHandler(ID, in_socket, irIP, irPort);
|
||||
auto conn = new EQWHTTPHandler(ID, in_socket, irIP, irPort);
|
||||
AddConnection(conn);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user