Convert NULL -> nullptr in C++

This commit is contained in:
Michał Janiszewski authored and Michał Janiszewski committed 2017-08-15 11:51:56 +02:00
1 parent 44c8c84b7c
commit d698ad1100
94 files changed
+3189 -3189

No files matched your search

+1 -1
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);