Index: jni/JniWebRequest.cpp |
diff --git a/jni/JniWebRequest.cpp b/jni/JniWebRequest.cpp |
index 172a6a0ddc829902b6000abca58dfc31de4f1662..522c5c17361ca747c8fe9af7e9fa9976878f784d 100644 |
--- a/jni/JniWebRequest.cpp |
+++ b/jni/JniWebRequest.cpp |
@@ -32,10 +32,10 @@ static void JNICALL JniDtor(JNIEnv* env, jclass clazz, jlong ptr) |
} |
JniWebRequest::JniWebRequest(JNIEnv* env, jobject callbackObject) |
- : JniCallbackBase(env, callbackObject), AdblockPlus::WebRequest() |
+ : JniCallbackBase(env, callbackObject), AdblockPlus::WebRequest(), |
+ tupleClass(new JniGlobalReference<jclass>(env, env->FindClass("com/github/rjeschke/neetutils/collections/Tuple"))), |
+ serverResponseClass(new JniGlobalReference<jclass>(env, env->FindClass(PKG("ServerResponse")))) |
{ |
- tupleClass.reset(new JniGlobalReference<jclass>(env, env->FindClass("com/github/rjeschke/neetutils/collections/Tuple"))); |
- serverResponseClass.reset(new JniGlobalReference<jclass>(env, env->FindClass(PKG("ServerResponse")))); |
} |
AdblockPlus::ServerResponse JniWebRequest::GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders) const |