Embrace nullptr over NULL and 0

This commit is contained in:
get
2023-04-14 23:55:53 -05:00
parent ae18aa0639
commit a5d06fde4b
16 changed files with 36 additions and 33 deletions

View File

@ -250,7 +250,7 @@ size_t MemPhysical()
mib[1] = HW_PHYSMEM64;
#endif
size_t length = sizeof(size_t);
sysctl(mib, 2, &physical_memory, &length, NULL, 0);
sysctl(mib, 2, &physical_memory, &length, nullptr, 0);
return physical_memory;
#elif defined __HAIKU__
system_info sysinfo;