Skip to content

Commit 0c37c5f

Browse files
committed
Default value for NewObjectArray initialElement
1 parent f525a67 commit 0c37c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jni/functions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ namespace jni
500500
}
501501

502502

503-
inline jarray<jobject>& NewObjectArray(JNIEnv& env, jsize length, jclass& elementClass, jobject* initialElement)
503+
inline jarray<jobject>& NewObjectArray(JNIEnv& env, jsize length, jclass& elementClass, jobject* initialElement = nullptr)
504504
{
505505
return *CheckJavaException(env,
506506
Wrap<jarray<jobject>*>(env.NewObjectArray(Unwrap(length), Unwrap(elementClass), Unwrap(initialElement))));

0 commit comments

Comments
 (0)