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

@@ -113,8 +113,8 @@ std::wstring FlatLevelSource::gatherStats() { return L"FlatLevelSource"; }
std::vector<Biome::MobSpawnerData*>* FlatLevelSource::getMobsAt(
MobCategory* mobCategory, int x, int y, int z) {
Biome* biome = level->getBiome(x, z);
if (biome == NULL) {
return NULL;
if (biome == nullptr) {
return nullptr;
}
return biome->getMobs(mobCategory);
}
@@ -122,7 +122,7 @@ std::vector<Biome::MobSpawnerData*>* FlatLevelSource::getMobsAt(
TilePos* FlatLevelSource::findNearestMapFeature(Level* level,
const std::wstring& featureName,
int x, int y, int z) {
return NULL;
return nullptr;
}
void FlatLevelSource::recreateLogicStructuresForChunk(int chunkX, int chunkZ) {