summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/JS_Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/JS_Object.h')
-rw-r--r--fpdfsdk/javascript/JS_Object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/JS_Object.h b/fpdfsdk/javascript/JS_Object.h
index 2e5c75c948..e32b8515b5 100644
--- a/fpdfsdk/javascript/JS_Object.h
+++ b/fpdfsdk/javascript/JS_Object.h
@@ -23,10 +23,10 @@ class CJS_EmbedObj {
explicit CJS_EmbedObj(CJS_Object* pJSObject);
virtual ~CJS_EmbedObj();
- CJS_Object* GetJSObject() const { return m_pJSObject; }
+ CJS_Object* GetJSObject() const { return m_pJSObject.Get(); }
protected:
- CJS_Object* const m_pJSObject;
+ CFX_UnownedPtr<CJS_Object> const m_pJSObject;
};
class CJS_Object {