mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 18:43:48 +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:
@@ -184,7 +184,7 @@ void MailDraft::SendMailTo(SQLTransaction& trans, MailReceiver const& receiver,
|
||||
|
||||
uint32 mailId = sObjectMgr->GenerateMailID();
|
||||
|
||||
time_t deliver_time = time(NULL) + deliver_delay;
|
||||
time_t deliver_time = time(nullptr) + deliver_delay;
|
||||
|
||||
//expire time if COD 3 days, if no COD 30 days, if auction sale pending 1 hour
|
||||
uint32 expire_delay;
|
||||
@@ -280,13 +280,13 @@ void MailDraft::SendMailTo(SQLTransaction& trans, MailReceiver const& receiver,
|
||||
}
|
||||
else if (!m_items.empty())
|
||||
{
|
||||
SQLTransaction temp = SQLTransaction(NULL);
|
||||
SQLTransaction temp = SQLTransaction(nullptr);
|
||||
deleteIncludedItems(temp);
|
||||
}
|
||||
}
|
||||
else if (!m_items.empty())
|
||||
{
|
||||
SQLTransaction temp = SQLTransaction(NULL);
|
||||
SQLTransaction temp = SQLTransaction(nullptr);
|
||||
deleteIncludedItems(temp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ class MailSender
|
||||
class MailReceiver
|
||||
{
|
||||
public: // Constructors
|
||||
explicit MailReceiver(uint32 receiver_lowguid) : m_receiver(NULL), m_receiver_lowguid(receiver_lowguid) {}
|
||||
explicit MailReceiver(uint32 receiver_lowguid) : m_receiver(nullptr), m_receiver_lowguid(receiver_lowguid) {}
|
||||
MailReceiver(Player* receiver);
|
||||
MailReceiver(Player* receiver, uint32 receiver_lowguid);
|
||||
public: // Accessors
|
||||
|
||||
Reference in New Issue
Block a user