1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Replace NULL with nullptr in C++ files

This commit is contained in:
Gymnasiast
2018-01-29 17:06:01 +01:00
committed by Richard Jenkins
parent 6bd0b2baea
commit 5cc21fd21b
26 changed files with 184 additions and 184 deletions

View File

@@ -321,7 +321,7 @@ sint32 strlogicalcmp(char const *a, char const *b) {
utf8 * safe_strtrunc(utf8 * text, size_t size)
{
assert(text != NULL);
assert(text != nullptr);
if (size == 0) return text;
@@ -343,8 +343,8 @@ utf8 * safe_strtrunc(utf8 * text, size_t size)
char *safe_strcpy(char * destination, const char * source, size_t size)
{
assert(destination != NULL);
assert(source != NULL);
assert(destination != nullptr);
assert(source != nullptr);
if (size == 0) return destination;
@@ -371,8 +371,8 @@ char *safe_strcpy(char * destination, const char * source, size_t size)
char *safe_strcat(char *destination, const char *source, size_t size)
{
assert(destination != NULL);
assert(source != NULL);
assert(destination != nullptr);
assert(source != nullptr);
if (size == 0) {
return destination;