mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 04:26:31 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -50,7 +50,7 @@ void ModelPart::construct(Model* model, int xTexOffs, int yTexOffs) {
|
||||
}
|
||||
|
||||
void ModelPart::addChild(ModelPart* child) {
|
||||
// if (children == NULL) children = new ModelPartArray;
|
||||
// if (children == nullptr) children = new ModelPartArray;
|
||||
children.push_back(child);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ ModelPart* ModelPart::retrieveChild(SKIN_BOX* pBox) {
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ModelPart* ModelPart::mirror() {
|
||||
@@ -158,7 +158,7 @@ void ModelPart::render(float scale, bool usecompiled,
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (children != NULL)
|
||||
// if (children != nullptr)
|
||||
{
|
||||
for (unsigned int i = 0; i < children.size(); i++) {
|
||||
children.at(i)->render(scale, usecompiled);
|
||||
@@ -178,7 +178,7 @@ void ModelPart::render(float scale, bool usecompiled,
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (children != NULL)
|
||||
// if (children != nullptr)
|
||||
{
|
||||
for (unsigned int i = 0; i < children.size(); i++) {
|
||||
children.at(i)->render(scale, usecompiled);
|
||||
@@ -196,7 +196,7 @@ void ModelPart::render(float scale, bool usecompiled,
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (children != NULL)
|
||||
// if (children != nullptr)
|
||||
{
|
||||
for (unsigned int i = 0; i < children.size(); i++) {
|
||||
children.at(i)->render(scale, usecompiled);
|
||||
|
||||
Reference in New Issue
Block a user