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
+5 -5
View File
@@ -119,7 +119,7 @@ public:
void SetMessage(std::string const& message)
{
_message = message;
_lastModifiedTime = uint64(time(NULL));
_lastModifiedTime = uint64(time(nullptr));
}
void SetComment(std::string const& comment) { _comment = comment; }
void SetViewed() { _viewed = true; }
@@ -188,7 +188,7 @@ public:
if (itr != _ticketList.end())
return itr->second;
return NULL;
return nullptr;
}
GmTicket* GetTicketByPlayer(uint64 playerGuid)
@@ -197,7 +197,7 @@ public:
if (itr->second && itr->second->IsFromPlayer(playerGuid) && !itr->second->IsClosed())
return itr->second;
return NULL;
return nullptr;
}
GmTicket* GetOldestOpenTicket()
@@ -206,7 +206,7 @@ public:
if (itr->second && !itr->second->IsClosed() && !itr->second->IsCompleted())
return itr->second;
return NULL;
return nullptr;
}
void AddTicket(GmTicket* ticket);
@@ -218,7 +218,7 @@ public:
void SetStatus(bool status) { _status = status; }
uint64 GetLastChange() const { return _lastChange; }
void UpdateLastChange() { _lastChange = uint64(time(NULL)); }
void UpdateLastChange() { _lastChange = uint64(time(nullptr)); }
uint32 GenerateTicketId() { return ++_lastTicketId; }
uint32 GetOpenTicketCount() const { return _openTicketCount; }