mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-03 18:45:01 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -42,7 +42,7 @@ std::shared_ptr<ItemInstance> ContainerMenu::quickMoveStack(
|
||||
std::shared_ptr<Player> player, int slotIndex) {
|
||||
std::shared_ptr<ItemInstance> clicked = nullptr;
|
||||
Slot* slot = slots.at(slotIndex);
|
||||
if (slot != NULL && slot->hasItem()) {
|
||||
if (slot != nullptr && slot->hasItem()) {
|
||||
std::shared_ptr<ItemInstance> stack = slot->getItem();
|
||||
clicked = stack->copy();
|
||||
|
||||
@@ -86,7 +86,7 @@ std::shared_ptr<ItemInstance> ContainerMenu::clicked(
|
||||
std::dynamic_pointer_cast<LocalPlayer>(player);
|
||||
|
||||
if (localPlayer !=
|
||||
NULL) // 4J-JEV: For "Chestful o'Cobblestone" achievement.
|
||||
nullptr) // 4J-JEV: For "Chestful o'Cobblestone" achievement.
|
||||
{
|
||||
int cobblecount = 0;
|
||||
for (int i = 0; i < container->getContainerSize(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user