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.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/cjs_border.cpp b/fpdfsdk/javascript/cjs_border.cpp
index 038606fff6..f751fcc0b4 100644
--- a/fpdfsdk/javascript/cjs_border.cpp
+++ b/fpdfsdk/javascript/cjs_border.cpp
@@ -14,9 +14,10 @@ JSConstSpec CJS_Border::ConstSpecs[] = {
{"u", JSConstSpec::String, 0, "underline"},
{0, JSConstSpec::Number, 0, 0}};
-int CJS_Border::g_nObjDefnID = -1;
+int CJS_Border::ObjDefnID = -1;
+// static
void CJS_Border::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- g_nObjDefnID = pEngine->DefineObj("border", eObjType, nullptr, nullptr);
- DefineConsts(pEngine, g_nObjDefnID, ConstSpecs);
+ ObjDefnID = pEngine->DefineObj("border", eObjType, nullptr, nullptr);
+ DefineConsts(pEngine, ObjDefnID, ConstSpecs);
}