summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-05-30 17:17:33 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-31 16:00:19 +0000
commitce84f7162c70fcabd2b3d486b9c19dac9b3754ed (patch)
tree0048a30455a2750051637ba50d08cb72c779486f /fpdfsdk
parent5e042a1bcd236737b99781e2d5f3a601df4baedc (diff)
downloadpdfium-ce84f7162c70fcabd2b3d486b9c19dac9b3754ed.tar.xz
CFXJS_Engine::GetObjDefnID is a static method
So call it as such. Fix two places where we're invoking it off of an intance. Change-Id: I08712fa27dbdf85c9195cedcc62d7d741b0ad091 Reviewed-on: https://pdfium-review.googlesource.com/6110 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/javascript/Document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp
index a760ad9956..5d5c2b5d6b 100644
--- a/fpdfsdk/javascript/Document.cpp
+++ b/fpdfsdk/javascript/Document.cpp
@@ -1211,7 +1211,7 @@ bool Document::addIcon(CJS_Runtime* pRuntime,
}
v8::Local<v8::Object> pJSIcon = params[1].ToV8Object(pRuntime);
- if (pRuntime->GetObjDefnID(pJSIcon) != CJS_Icon::g_nObjDefnID) {
+ if (CFXJS_Engine::GetObjDefnID(pJSIcon) != CJS_Icon::g_nObjDefnID) {
sError = JSGetStringFromID(IDS_STRING_JSTYPEERROR);
return false;
}