chore: use nullptr where possible in place of NULL

This commit is contained in:
sithlord48
2025-04-27 15:39:23 -04:00
committed by Nick Bolton
parent 60dc4c0cd8
commit 63d65bb47b
140 changed files with 1116 additions and 1101 deletions

View File

@ -109,7 +109,7 @@ std::string sprintf(const char *fmt, ...)
char *buffer = tmp;
int len = (int)(sizeof(tmp) / sizeof(tmp[0]));
std::string result;
while (buffer != NULL) {
while (buffer != nullptr) {
// try printing into the buffer
va_list args;
va_start(args, fmt);
@ -131,7 +131,7 @@ std::string sprintf(const char *fmt, ...)
if (buffer != tmp) {
delete[] buffer;
}
buffer = NULL;
buffer = nullptr;
}
}