summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/JS_Value.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-09-21 09:22:05 -0700
committerTom Sepez <tsepez@chromium.org>2015-09-21 09:22:05 -0700
commit116e4addeecd2cb779b1ab590bea2d091ca12915 (patch)
tree1f313d843abb122a79b9272e17fb379292a89ffa /fpdfsdk/src/javascript/JS_Value.cpp
parentb2ed5de36ca387e0a9bbc3dfb9f5b568c7cc2ea8 (diff)
downloadpdfium-116e4addeecd2cb779b1ab590bea2d091ca12915.tar.xz
Merge to XFA:More tidy of CJS_Object, kill implicit cast operator
(cherry picked from commit 270fc65d5824eeedbb2ed17516a72721bde9c9ef) Original Review URL: https://codereview.chromium.org/1349423006 . TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1357243002 .
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Value.cpp')
-rw-r--r--fpdfsdk/src/javascript/JS_Value.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/javascript/JS_Value.cpp b/fpdfsdk/src/javascript/JS_Value.cpp
index 23def5dc9c..a07c61f108 100644
--- a/fpdfsdk/src/javascript/JS_Value.cpp
+++ b/fpdfsdk/src/javascript/JS_Value.cpp
@@ -61,7 +61,7 @@ CJS_Value::CJS_Value(v8::Isolate* isolate, CJS_Document* pJsDoc)
: m_isolate(isolate) {
m_eType = VT_object;
if (pJsDoc)
- m_pValue = (v8::Local<v8::Object>)*pJsDoc;
+ m_pValue = pJsDoc->ToV8Object();
}
CJS_Value::CJS_Value(v8::Isolate* isolate, const FX_WCHAR* pWstr)
@@ -172,13 +172,13 @@ void CJS_Value::operator=(v8::Local<v8::Object> pObj) {
void CJS_Value::operator=(CJS_Object* pObj) {
if (pObj)
- operator=((v8::Local<v8::Object>)*pObj);
+ operator=(pObj->ToV8Object());
}
void CJS_Value::operator=(CJS_Document* pJsDoc) {
m_eType = VT_object;
if (pJsDoc) {
- m_pValue = static_cast<v8::Local<v8::Object>>(*pJsDoc);
+ m_pValue = pJsDoc->ToV8Object();
}
}