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

This commit is contained in:
Michael Cook (mackal) 2015-01-09 03:05:15 -05:00
parent 7e2661bbc1
commit c9a75dcf64

View File

@ -57,7 +57,7 @@ bool QueryServConnection::Process()
struct in_addr in; struct in_addr in;
in.s_addr = GetIP(); in.s_addr = GetIP();
_log(QUERYSERV__ERROR, "QueryServ authorization failed."); _log(QUERYSERV__ERROR, "QueryServ authorization failed.");
ServerPacket* pack = new ServerPacket(ServerOP_ZAAuthFailed); auto pack = new ServerPacket(ServerOP_ZAAuthFailed);
SendPacket(pack); SendPacket(pack);
delete pack; delete pack;
Disconnect(); Disconnect();
@ -69,7 +69,7 @@ bool QueryServConnection::Process()
struct in_addr in; struct in_addr in;
in.s_addr = GetIP(); in.s_addr = GetIP();
_log(QUERYSERV__ERROR, "QueryServ authorization failed."); _log(QUERYSERV__ERROR, "QueryServ authorization failed.");
ServerPacket* pack = new ServerPacket(ServerOP_ZAAuthFailed); auto pack = new ServerPacket(ServerOP_ZAAuthFailed);
SendPacket(pack); SendPacket(pack);
delete pack; delete pack;
Disconnect(); Disconnect();