Core: Yet more cleanups in codestyle...

This commit is contained in:
click
2011-06-12 02:06:07 +02:00
parent c77aa6e846
commit da03bbbdab
13 changed files with 32 additions and 32 deletions
+6 -6
View File
@@ -43,7 +43,7 @@
#include "ScriptMgr.h"
#include "Transport.h"
bool MapSessionFilter::Process(WorldPacket *packet)
bool MapSessionFilter::Process(WorldPacket* packet)
{
OpcodeHandler const &opHandle = opcodeTable[packet->GetOpcode()];
@@ -65,7 +65,7 @@ bool MapSessionFilter::Process(WorldPacket *packet)
//we should process ALL packets when player is not in world/logged in
//OR packet handler is not thread-safe!
bool WorldSessionFilter::Process(WorldPacket *packet)
bool WorldSessionFilter::Process(WorldPacket* packet)
{
OpcodeHandler const &opHandle = opcodeTable[packet->GetOpcode()];
//check if packet handler is supposed to be safe
@@ -120,7 +120,7 @@ WorldSession::~WorldSession()
}
///- empty incoming packet queue
WorldPacket *packet = NULL;
WorldPacket* packet = NULL;
while (_recvQueue.next(packet))
delete packet;
@@ -190,7 +190,7 @@ void WorldSession::QueuePacket(WorldPacket *new_packet)
}
/// Logging helper for unexpected opcodes
void WorldSession::LogUnexpectedOpcode(WorldPacket *packet, const char* status, const char *reason)
void WorldSession::LogUnexpectedOpcode(WorldPacket* packet, const char* status, const char *reason)
{
sLog->outError("SESSION (account: %u, guidlow: %u, char: %s): received unexpected opcode %s (0x%.4X, status: %s) %s",
GetAccountId(), m_GUIDLow, _player ? _player->GetName() : "<none>",
@@ -198,7 +198,7 @@ void WorldSession::LogUnexpectedOpcode(WorldPacket *packet, const char* status,
}
/// Logging helper for unexpected opcodes
void WorldSession::LogUnprocessedTail(WorldPacket *packet)
void WorldSession::LogUnprocessedTail(WorldPacket* packet)
{
sLog->outError("SESSION: opcode %s (0x%.4X) have unprocessed tail data (read stop at %u from %u)",
LookupOpcodeName(packet->GetOpcode()), packet->GetOpcode(), uint32(packet->rpos()), uint32(packet->wpos()));
@@ -218,7 +218,7 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
///- Retrieve packets from the receive queue and call the appropriate handlers
/// not process packets if socket already closed
WorldPacket *packet = NULL;
WorldPacket* packet = NULL;
while (m_Socket && !m_Socket->IsClosed() && _recvQueue.next(packet, updater))
{
if (packet->GetOpcode() >= NUM_MSG_TYPES)