mirror of https://github.com/kiwix/libkiwix.git
[JNI] Fix implementation of setDataDirectory.
Now that setDataDirectory is a static method, we need to take an jclass instead of a jobject.
This commit is contained in:
parent
1e94665c07
commit
73a29ccb24
|
@ -31,7 +31,7 @@
|
|||
pthread_mutex_t globalLock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_kiwix_kiwixlib_JNIICU_setDataDirectory(
|
||||
JNIEnv* env, jobject obj, jstring dirStr)
|
||||
JNIEnv* env, jclass kclass, jstring dirStr)
|
||||
{
|
||||
std::string cPath = jni2c(dirStr, env);
|
||||
|
||||
|
|
Loading…
Reference in New Issue