diff options
author | tsepez <tsepez@chromium.org> | 2016-07-25 11:17:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-25 11:17:07 -0700 |
commit | fbf52c2231bd148bcf1fcd6ac1e6a5ed5e311b8c (patch) | |
tree | 2c40fb1663a2aed13c0a6243ca527ca3854ecd69 /fpdfsdk/javascript/JS_Define.h | |
parent | 9b671ace8aec906683b05399cf8a2882ed8ef7b6 (diff) | |
download | pdfium-fbf52c2231bd148bcf1fcd6ac1e6a5ed5e311b8c.tar.xz |
Tidy up JS_Value.h
Use ToV8Object() instead of CJS_Value cast operator.
Add some missing consts / explicits.
Move code into empty namespace.
Review-Url: https://codereview.chromium.org/2172813002
Diffstat (limited to 'fpdfsdk/javascript/JS_Define.h')
-rw-r--r-- | fpdfsdk/javascript/JS_Define.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/JS_Define.h b/fpdfsdk/javascript/JS_Define.h index 6aa1dec768..e120758c60 100644 --- a/fpdfsdk/javascript/JS_Define.h +++ b/fpdfsdk/javascript/JS_Define.h @@ -92,7 +92,7 @@ void JSPropGetter(const char* prop_name_string, sError)); return; } - info.GetReturnValue().Set((v8::Local<v8::Value>)value); + info.GetReturnValue().Set(value.ToV8Value()); } template <class C, @@ -383,7 +383,7 @@ void JSSpecialPropGet(const char* class_name, FXJS_Error(isolate, JSFormatErrorString(class_name, "GetProperty", sError)); return; } - info.GetReturnValue().Set((v8::Local<v8::Value>)value); + info.GetReturnValue().Set(value.ToV8Value()); } template <class Alt> |