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

@@ -38,12 +38,12 @@ RegionFile* RegionFileCache::_getRegionFile(
}
MemSect(0);
RegionFile* ref = NULL;
RegionFile* ref = nullptr;
AUTO_VAR(it, cache.find(file));
if (it != cache.end()) ref = it->second;
// 4J Jev, put back in.
if (ref != NULL) {
if (ref != nullptr) {
return ref;
}
@@ -70,7 +70,7 @@ void RegionFileCache::_clear() // 4J - TODO was synchronized
// 4J - removed try/catch
// try {
RegionFile* regionFile = it->second;
if (regionFile != NULL) {
if (regionFile != nullptr) {
regionFile->close();
}
delete regionFile;