Index: jni/JniLogSystem.cpp |
diff --git a/jni/JniLogSystem.cpp b/jni/JniLogSystem.cpp |
index b21b13e25058fa96c2e13068d5446d8f0f017979..2820bd57bebc0597e9dcdaacb40674ea92c7fca1 100644 |
--- a/jni/JniLogSystem.cpp |
+++ b/jni/JniLogSystem.cpp |
@@ -32,9 +32,8 @@ static void JNICALL JniDtor(JNIEnv* env, jclass clazz, jlong ptr) |
} |
JniLogSystemCallback::JniLogSystemCallback(JNIEnv* env, jobject callbackObject) |
- : JniCallbackBase(env, callbackObject), AdblockPlus::LogSystem() |
+ : JniCallbackBase(env, callbackObject), AdblockPlus::LogSystem(), logLevelClass(new JniGlobalReference<jclass>(env, env->FindClass(PKG("LogSystem$LogLevel")))) |
{ |
- logLevelClass.reset(new JniGlobalReference<jclass>(env, env->FindClass(PKG("LogSystem$LogLevel")))); |
} |
void JniLogSystemCallback::operator()(AdblockPlus::LogSystem::LogLevel logLevel, const std::string& message, const std::string& source) |