mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -48,12 +48,12 @@ public:
|
||||
};
|
||||
static std::vector<ChatCommand> disableCommandTable =
|
||||
{
|
||||
{ "add", SEC_ADMINISTRATOR, true, NULL, "", addDisableCommandTable },
|
||||
{ "remove", SEC_ADMINISTRATOR, true, NULL, "", removeDisableCommandTable },
|
||||
{ "add", SEC_ADMINISTRATOR, true, nullptr, "", addDisableCommandTable },
|
||||
{ "remove", SEC_ADMINISTRATOR, true, nullptr, "", removeDisableCommandTable },
|
||||
};
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
{
|
||||
{ "disable", SEC_ADMINISTRATOR, false, NULL, "", disableCommandTable },
|
||||
{ "disable", SEC_ADMINISTRATOR, false, nullptr, "", disableCommandTable },
|
||||
};
|
||||
return commandTable;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
{
|
||||
{ "mmap", SEC_ADMINISTRATOR, true, NULL, "", mmapCommandTable },
|
||||
{ "mmap", SEC_ADMINISTRATOR, true, nullptr, "", mmapCommandTable },
|
||||
};
|
||||
return commandTable;
|
||||
}
|
||||
|
||||
@@ -519,7 +519,7 @@ public:
|
||||
}
|
||||
uint32 itemId = atol(pitem);
|
||||
|
||||
char* addMulti = strtok(NULL, " ");
|
||||
char* addMulti = strtok(nullptr, " ");
|
||||
if (!sObjectMgr->RemoveVendorItem(addMulti ? handler->GetSession()->GetCurrentVendor() : vendor->GetEntry(), itemId))
|
||||
{
|
||||
handler->PSendSysMessage(LANG_ITEM_NOT_IN_LIST, itemId);
|
||||
|
||||
Reference in New Issue
Block a user