1
0
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:
Michał Janiszewski
2017-08-15 10:07:44 +02:00
committed by Michał Janiszewski
parent 44c8c84b7c
commit d698ad1100
94 changed files with 3189 additions and 3189 deletions

View File

@@ -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);