Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: jni/JniCallbacks.cpp

Issue 5697499218051072: Usage of new API, cleanups (reduced) (Closed)
Patch Set: Removed even more unrelated changes Created April 28, 2014, 9:42 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: jni/JniCallbacks.cpp
diff --git a/jni/JniCallbacks.cpp b/jni/JniCallbacks.cpp
index 92097fd623df7a027cac6af300bc14ff7696fe6a..b0da62d6c86528571875fbc0c86515f9a7ec1f77 100644
--- a/jni/JniCallbacks.cpp
+++ b/jni/JniCallbacks.cpp
@@ -18,10 +18,10 @@
#include "JniCallbacks.h"
JniCallbackBase::JniCallbackBase(JNIEnv* env, jobject callbackObject)
+ : callbackObject(new JniGlobalReference<jobject>(env, callbackObject)),
+ exceptionLoggerClass(new JniGlobalReference<jclass>(env, env->FindClass(PKG("JniExceptionHandler"))))
{
env->GetJavaVM(&javaVM);
- this->callbackObject.reset(new JniGlobalReference<jobject>(env, callbackObject));
- exceptionLoggerClass.reset(new JniGlobalReference<jclass>(env, env->FindClass(PKG("JniExceptionHandler"))));
}
JniCallbackBase::~JniCallbackBase()

Powered by Google App Engine
This is Rietveld