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

@@ -22,10 +22,10 @@ BufferedOutputStream::~BufferedOutputStream() {
// Flushes this buffered output stream. This forces any buffered output bytes to
// be written out to the underlying output stream.
void BufferedOutputStream::flush() {
if (stream == NULL) {
if (stream == nullptr) {
app.DebugPrintf(
"BufferedOutputStream::flush() called but underlying stream is "
"NULL\n");
"nullptr\n");
return;
}
@@ -40,10 +40,10 @@ void BufferedOutputStream::flush() {
// and then calls the close method of its underlying output stream.
void BufferedOutputStream::close() {
flush();
if (stream == NULL) {
if (stream == nullptr) {
app.DebugPrintf(
"BufferedOutputStream::close() called but underlying stream is "
"NULL\n");
"nullptr\n");
return;
}
stream->close();