summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/cjs_display.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/cjs_display.cpp')
-rw-r--r--fpdfsdk/javascript/cjs_display.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/cjs_display.cpp b/fpdfsdk/javascript/cjs_display.cpp
index 329675dbc3..391f09005a 100644
--- a/fpdfsdk/javascript/cjs_display.cpp
+++ b/fpdfsdk/javascript/cjs_display.cpp
@@ -16,7 +16,8 @@ const JSConstSpec CJS_Display::ConstSpecs[] = {
int CJS_Display::ObjDefnID = -1;
// static
-void CJS_Display::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- ObjDefnID = pEngine->DefineObj("display", eObjType, nullptr, nullptr);
+void CJS_Display::DefineJSObjects(CFXJS_Engine* pEngine) {
+ ObjDefnID =
+ pEngine->DefineObj("display", FXJSOBJTYPE_STATIC, nullptr, nullptr);
DefineConsts(pEngine, ObjDefnID, ConstSpecs);
}