refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com> Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
parent
38903b5dfb
commit
1f89282b22
325 changed files with 2348 additions and 2348 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include "ByteBuffer.h"
|
||||
#include "WorldPacket.h"
|
||||
|
||||
PacketLog::PacketLog() : _file(NULL)
|
||||
PacketLog::PacketLog() : _file(nullptr)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ PacketLog::~PacketLog()
|
|||
if (_file)
|
||||
fclose(_file);
|
||||
|
||||
_file = NULL;
|
||||
_file = nullptr;
|
||||
}
|
||||
|
||||
PacketLog* PacketLog::instance()
|
||||
|
|
@ -46,7 +46,7 @@ void PacketLog::LogPacket(WorldPacket const& packet, Direction direction)
|
|||
ByteBuffer data(4+4+4+1+packet.size());
|
||||
data << int32(packet.GetOpcode());
|
||||
data << int32(packet.size());
|
||||
data << uint32(time(NULL));
|
||||
data << uint32(time(nullptr));
|
||||
data << uint8(direction);
|
||||
|
||||
for (uint32 i = 0; i < packet.size(); i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue