summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/cjs_position.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/cjs_position.cpp')
-rw-r--r--fpdfsdk/javascript/cjs_position.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/cjs_position.cpp b/fpdfsdk/javascript/cjs_position.cpp
index d53c514b73..744f159e60 100644
--- a/fpdfsdk/javascript/cjs_position.cpp
+++ b/fpdfsdk/javascript/cjs_position.cpp
@@ -19,8 +19,8 @@ const JSConstSpec CJS_Position::ConstSpecs[] = {
int CJS_Position::ObjDefnID = -1;
// static
-void CJS_Position::DefineJSObjects(CFXJS_Engine* pEngine,
- FXJSOBJTYPE eObjType) {
- ObjDefnID = pEngine->DefineObj("position", eObjType, nullptr, nullptr);
+void CJS_Position::DefineJSObjects(CFXJS_Engine* pEngine) {
+ ObjDefnID =
+ pEngine->DefineObj("position", FXJSOBJTYPE_STATIC, nullptr, nullptr);
DefineConsts(pEngine, ObjDefnID, ConstSpecs);
}