refactor: replace NULL with nullptr across C++ codebase

Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
MatthewBeshay
2026-03-30 16:25:52 +11:00
parent a330ecdcbb
commit dfb0e3b03e
752 changed files with 5396 additions and 5396 deletions

View File

@@ -31,7 +31,7 @@ void ServerScoreboard::setDisplayObjective(int slot, Objective* objective) {
// Scoreboard::setDisplayObjective(slot, objective);
// if (old != objective && old != NULL)
// if (old != objective && old != nullptr)
//{
// if (getObjectiveDisplaySlotCount(old) > 0)
// {
@@ -45,7 +45,7 @@ void ServerScoreboard::setDisplayObjective(int slot, Objective* objective) {
// }
// }
// if (objective != NULL)
// if (objective != nullptr)
//{
// if (trackedObjectives.contains(objective))
// {
@@ -144,7 +144,7 @@ void ServerScoreboard::setSaveData(ScoreboardSaveData* data) {
}
void ServerScoreboard::setDirty() {
// if (saveData != NULL)
// if (saveData != nullptr)
//{
// saveData->setDirty();
// }
@@ -152,7 +152,7 @@ void ServerScoreboard::setDirty() {
std::vector<std::shared_ptr<Packet> >*
ServerScoreboard::getStartTrackingPackets(Objective* objective) {
return NULL;
return nullptr;
// vector<shared_ptr<Packet> > *packets = new vector<shared_ptr<Packet> >();
// packets.push_back( shared_ptr<SetObjectivePacket>( new
@@ -191,7 +191,7 @@ void ServerScoreboard::startTrackingObjective(Objective* objective) {
std::vector<std::shared_ptr<Packet> >* ServerScoreboard::getStopTrackingPackets(
Objective* objective) {
return NULL;
return nullptr;
// vector<shared_ptr<Packet> > *packets = new ArrayList<Packet>();
// packets->push_back( shared_ptr<SetObjectivePacket( new