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