mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 07:55:15 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -7,20 +7,20 @@
|
||||
TextureAndGeometryPacket::TextureAndGeometryPacket() {
|
||||
this->textureName = L"";
|
||||
this->dwTextureBytes = 0;
|
||||
this->pbData = NULL;
|
||||
this->pbData = nullptr;
|
||||
this->dwBoxC = 0;
|
||||
this->BoxDataA = NULL;
|
||||
this->BoxDataA = nullptr;
|
||||
uiAnimOverrideBitmask = 0;
|
||||
}
|
||||
|
||||
TextureAndGeometryPacket::~TextureAndGeometryPacket() {
|
||||
// can't free these - they're used elsewhere
|
||||
// if(this->BoxDataA!=NULL)
|
||||
// if(this->BoxDataA!=nullptr)
|
||||
// {
|
||||
// delete [] this->BoxDataA;
|
||||
// }
|
||||
//
|
||||
// if(this->pbData!=NULL)
|
||||
// if(this->pbData!=nullptr)
|
||||
// {
|
||||
// delete [] this->pbData;
|
||||
// }
|
||||
@@ -40,7 +40,7 @@ TextureAndGeometryPacket::TextureAndGeometryPacket(
|
||||
this->pbData = pbData;
|
||||
this->dwTextureBytes = dataBytes;
|
||||
this->dwBoxC = 0;
|
||||
this->BoxDataA = NULL;
|
||||
this->BoxDataA = nullptr;
|
||||
this->uiAnimOverrideBitmask = 0;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ TextureAndGeometryPacket::TextureAndGeometryPacket(
|
||||
this->BoxDataA[iCount++] = *pSkinBox;
|
||||
}
|
||||
} else {
|
||||
this->BoxDataA = NULL;
|
||||
this->BoxDataA = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,9 +90,9 @@ TextureAndGeometryPacket::TextureAndGeometryPacket(
|
||||
this->pbData = pbData;
|
||||
this->dwTextureBytes = dataBytes;
|
||||
this->uiAnimOverrideBitmask = uiAnimOverrideBitmask;
|
||||
if (pvSkinBoxes == NULL) {
|
||||
if (pvSkinBoxes == nullptr) {
|
||||
this->dwBoxC = 0;
|
||||
this->BoxDataA = NULL;
|
||||
this->BoxDataA = nullptr;
|
||||
} else {
|
||||
this->dwBoxC = (std::uint32_t)pvSkinBoxes->size();
|
||||
this->BoxDataA = new SKIN_BOX[this->dwBoxC];
|
||||
|
||||
Reference in New Issue
Block a user