mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +01:00
Convert NULL -> nullptr in C++
This commit is contained in:
committed by
Michał Janiszewski
parent
44c8c84b7c
commit
d698ad1100
@@ -166,7 +166,7 @@ JNIEXPORT jlong JNICALL
|
||||
Java_website_openrct2_ZipArchive_allocBytes(JNIEnv *env, jclass, jbyteArray input,
|
||||
jint numBytes) {
|
||||
|
||||
jbyte *bufferPtr = env->GetByteArrayElements(input, NULL);
|
||||
jbyte *bufferPtr = env->GetByteArrayElements(input, nullptr);
|
||||
|
||||
void *data = Memory::Allocate<void>((size_t) numBytes);
|
||||
memcpy(data, bufferPtr, numBytes);
|
||||
|
||||
Reference in New Issue
Block a user