refactor(Core): apply clang-tidy modernize-use-nullptr (#3819)
This commit is contained in:
@@ -104,12 +104,12 @@ public:
|
||||
static Unit* GetObjectInOrOutOfWorld(uint64 guid, Unit* /*typeSpecifier*/)
|
||||
{
|
||||
if (IS_PLAYER_GUID(guid))
|
||||
return (Unit*)GetObjectInOrOutOfWorld(guid, (Player*)NULL);
|
||||
return (Unit*)GetObjectInOrOutOfWorld(guid, (Player*)nullptr);
|
||||
|
||||
if (IS_PET_GUID(guid))
|
||||
return (Unit*)GetObjectInOrOutOfWorld(guid, (Pet*)NULL);
|
||||
return (Unit*)GetObjectInOrOutOfWorld(guid, (Pet*)nullptr);
|
||||
|
||||
return (Unit*)GetObjectInOrOutOfWorld(guid, (Creature*)NULL);
|
||||
return (Unit*)GetObjectInOrOutOfWorld(guid, (Creature*)nullptr);
|
||||
}
|
||||
|
||||
// returns object if is in world
|
||||
@@ -124,12 +124,12 @@ public:
|
||||
static Unit* GetObjectInWorld(uint64 guid, Unit* /*typeSpecifier*/)
|
||||
{
|
||||
if (IS_PLAYER_GUID(guid))
|
||||
return (Unit*)GetObjectInWorld(guid, (Player*)NULL);
|
||||
return (Unit*)GetObjectInWorld(guid, (Player*)nullptr);
|
||||
|
||||
if (IS_PET_GUID(guid))
|
||||
return (Unit*)GetObjectInWorld(guid, (Pet*)NULL);
|
||||
return (Unit*)GetObjectInWorld(guid, (Pet*)nullptr);
|
||||
|
||||
return (Unit*)GetObjectInWorld(guid, (Creature*)NULL);
|
||||
return (Unit*)GetObjectInWorld(guid, (Creature*)nullptr);
|
||||
}
|
||||
|
||||
// returns object if is in map
|
||||
|
||||
@@ -1286,7 +1286,7 @@ public:
|
||||
|
||||
void AddVendorItem(uint32 entry, uint32 item, int32 maxcount, uint32 incrtime, uint32 extendedCost, bool persist = true); // for event
|
||||
bool RemoveVendorItem(uint32 entry, uint32 item, bool persist = true); // for event
|
||||
bool IsVendorItemValid(uint32 vendor_entry, uint32 item, int32 maxcount, uint32 ptime, uint32 ExtendedCost, Player* player = NULL, std::set<uint32>* skip_vendors = NULL, uint32 ORnpcflag = 0) const;
|
||||
bool IsVendorItemValid(uint32 vendor_entry, uint32 item, int32 maxcount, uint32 ptime, uint32 ExtendedCost, Player* player = nullptr, std::set<uint32>* skip_vendors = nullptr, uint32 ORnpcflag = 0) const;
|
||||
|
||||
void LoadScriptNames();
|
||||
ScriptNameContainer& GetScriptNames() { return _scriptNamesStore; }
|
||||
|
||||
Reference in New Issue
Block a user