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:
Kitzunu
2020-08-31 11:55:09 +02:00
committed by GitHub
parent 38903b5dfb
commit 1f89282b22
325 changed files with 2348 additions and 2348 deletions

View File

@@ -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++)

View File

@@ -27,7 +27,7 @@ class PacketLog
static PacketLog* instance();
void Initialize();
bool CanLogPacket() const { return (_file != NULL); }
bool CanLogPacket() const { return (_file != nullptr); }
void LogPacket(WorldPacket const& packet, Direction direction);
private: