diff options
Diffstat (limited to 'WebKit/android/jni/WebCoreJni.h')
-rw-r--r-- | WebKit/android/jni/WebCoreJni.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebCoreJni.h b/WebKit/android/jni/WebCoreJni.h index 6e6a486..ec25c8f 100644 --- a/WebKit/android/jni/WebCoreJni.h +++ b/WebKit/android/jni/WebCoreJni.h @@ -36,6 +36,9 @@ namespace android { // returned from getRealObject. class AutoJObject { public: + AutoJObject(const AutoJObject& other) + : m_env(other.m_env) + , m_obj(other.m_obj ? other.m_env->NewLocalRef(other.m_obj) : NULL) {} ~AutoJObject() { if (m_obj) m_env->DeleteLocalRef(m_obj); @@ -54,6 +57,7 @@ public: return m_env; } private: + AutoJObject(); // Not permitted. AutoJObject(JNIEnv* env, jobject obj) : m_env(env) , m_obj(obj) {} |