mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
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:
@@ -16,7 +16,7 @@ RealmSocket::Session::Session(void) { }
|
||||
RealmSocket::Session::~Session(void) { }
|
||||
|
||||
RealmSocket::RealmSocket(void) :
|
||||
input_buffer_(4096), session_(NULL),
|
||||
input_buffer_(4096), session_(nullptr),
|
||||
_remoteAddress(), _remotePort(0)
|
||||
{
|
||||
reference_counting_policy().value(ACE_Event_Handler::Reference_Counting_Policy::ENABLED);
|
||||
@@ -261,7 +261,7 @@ int RealmSocket::handle_input(ACE_HANDLE)
|
||||
|
||||
input_buffer_.wr_ptr((size_t)n);
|
||||
|
||||
if (session_ != NULL)
|
||||
if (session_ != nullptr)
|
||||
{
|
||||
session_->OnRead();
|
||||
input_buffer_.crunch();
|
||||
|
||||
@@ -48,10 +48,10 @@ void RealmList::UpdateRealm(uint32 id, const std::string& name, ACE_INET_Addr co
|
||||
void RealmList::UpdateIfNeed()
|
||||
{
|
||||
// maybe disabled or updated recently
|
||||
if (!m_UpdateInterval || m_NextUpdateTime > time(NULL))
|
||||
if (!m_UpdateInterval || m_NextUpdateTime > time(nullptr))
|
||||
return;
|
||||
|
||||
m_NextUpdateTime = time(NULL) + m_UpdateInterval;
|
||||
m_NextUpdateTime = time(nullptr) + m_UpdateInterval;
|
||||
|
||||
// Clears Realm list
|
||||
m_realms.clear();
|
||||
|
||||
Reference in New Issue
Block a user