mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-26 22:52:24 +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
|
#endif
|
||||||
|
|
||||||
|
auto buffer = new char[READ_BUFFER_LEN + 1];
|
||||||
char *buffer = new char[READ_BUFFER_LEN+1];
|
|
||||||
size_t len;
|
size_t len;
|
||||||
std::string to_process;
|
std::string to_process;
|
||||||
while((len = fread(buffer, 1, READ_BUFFER_LEN, f)) > 0) {
|
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) {
|
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);
|
AddConnection(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user