summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/cjs_style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/cjs_style.cpp')
-rw-r--r--fpdfsdk/javascript/cjs_style.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/cjs_style.cpp b/fpdfsdk/javascript/cjs_style.cpp
index 03e3f6d789..26f97d1071 100644
--- a/fpdfsdk/javascript/cjs_style.cpp
+++ b/fpdfsdk/javascript/cjs_style.cpp
@@ -18,7 +18,7 @@ const JSConstSpec CJS_Style::ConstSpecs[] = {
int CJS_Style::ObjDefnID = -1;
// static
-void CJS_Style::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- ObjDefnID = pEngine->DefineObj("style", eObjType, nullptr, nullptr);
+void CJS_Style::DefineJSObjects(CFXJS_Engine* pEngine) {
+ ObjDefnID = pEngine->DefineObj("style", FXJSOBJTYPE_STATIC, nullptr, nullptr);
DefineConsts(pEngine, ObjDefnID, ConstSpecs);
}