summaryrefslogtreecommitdiffstats
path: root/platform/ios
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/os_ios.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/os_ios.mm b/platform/ios/os_ios.mm
index 23614af366..ac13a4d457 100644
--- a/platform/ios/os_ios.mm
+++ b/platform/ios/os_ios.mm
@@ -361,7 +361,7 @@ String OS_IOS::get_unique_id() const {
String OS_IOS::get_processor_name() const {
char buffer[256];
size_t buffer_len = 256;
- if (sysctlbyname("machdep.cpu.brand_string", &buffer, &buffer_len, NULL, 0) == 0) {
+ if (sysctlbyname("machdep.cpu.brand_string", &buffer, &buffer_len, nullptr, 0) == 0) {
return String::utf8(buffer, buffer_len);
}
ERR_FAIL_V_MSG("", String("Couldn't get the CPU model name. Returning an empty string."));