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: Even more review issues fixed. Created April 28, 2014, 10:18 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
« no previous file with comments | « jni/JniCallbacks.h ('k') | jni/JniFilterChangeCallback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « jni/JniCallbacks.h ('k') | jni/JniFilterChangeCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld