mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Replace NULL with nullptr in C++ files
This commit is contained in:
committed by
Richard Jenkins
parent
6bd0b2baea
commit
5cc21fd21b
@@ -58,9 +58,9 @@ char * strndup(const char * src, size_t size)
|
||||
size_t len = strnlen(src, size);
|
||||
char * dst = (char *)malloc(len + 1);
|
||||
|
||||
if (dst == NULL)
|
||||
if (dst == nullptr)
|
||||
{
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
dst = (char *)memcpy(dst, src, len);
|
||||
@@ -193,7 +193,7 @@ void platform_sleep(uint32 ms)
|
||||
|
||||
uint8 platform_get_currency_value(const char * currCode)
|
||||
{
|
||||
if (currCode == NULL || strlen(currCode) < 3)
|
||||
if (currCode == nullptr || strlen(currCode) < 3)
|
||||
{
|
||||
return CURRENCY_POUNDS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user