summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/cjs_scalewhen.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-26 16:49:38 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-26 21:14:16 +0000
commitbef4d3e97bba3274add9738d6b199f7760c88f53 (patch)
tree5a3d4204ead787e75323bc48d0ad3125c83bfaec /fpdfsdk/javascript/cjs_scalewhen.cpp
parentc94a793413938c4142bc8bedd40ae2fe2527f71a (diff)
downloadpdfium-bef4d3e97bba3274add9738d6b199f7760c88f53.tar.xz
Remove unneeded DefineJSObject param
The second parameter to DefineJSObject is always set the same for each object type. Remove and put the value directly into the DefineObj calls. Change-Id: If939c57fe6ea3b985ab2337eb30f472c668cdc42 Reviewed-on: https://pdfium-review.googlesource.com/16911 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/cjs_scalewhen.cpp')
-rw-r--r--fpdfsdk/javascript/cjs_scalewhen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/cjs_scalewhen.cpp b/fpdfsdk/javascript/cjs_scalewhen.cpp
index 95314a2ba0..b27f1f4b24 100644
--- a/fpdfsdk/javascript/cjs_scalewhen.cpp
+++ b/fpdfsdk/javascript/cjs_scalewhen.cpp
@@ -16,8 +16,8 @@ const JSConstSpec CJS_ScaleWhen::ConstSpecs[] = {
int CJS_ScaleWhen::ObjDefnID = -1;
// static
-void CJS_ScaleWhen::DefineJSObjects(CFXJS_Engine* pEngine,
- FXJSOBJTYPE eObjType) {
- ObjDefnID = pEngine->DefineObj("scaleWhen", eObjType, nullptr, nullptr);
+void CJS_ScaleWhen::DefineJSObjects(CFXJS_Engine* pEngine) {
+ ObjDefnID =
+ pEngine->DefineObj("scaleWhen", FXJSOBJTYPE_STATIC, nullptr, nullptr);
DefineConsts(pEngine, ObjDefnID, ConstSpecs);
}