mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-10 02:32:32 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user