clang-modernize -use-auto convert for world/eqw_http_handler.cpp

This commit is contained in:
Michael Cook (mackal) 2015-01-09 03:05:13 -05:00
parent 0ed10ec102
commit 0956575292

View File

@ -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);
}