diff options
Diffstat (limited to 'fpdfsdk/javascript/cjs_font.cpp')
-rw-r--r-- | fpdfsdk/javascript/cjs_font.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/cjs_font.cpp b/fpdfsdk/javascript/cjs_font.cpp index 403da400d4..580b115833 100644 --- a/fpdfsdk/javascript/cjs_font.cpp +++ b/fpdfsdk/javascript/cjs_font.cpp @@ -26,7 +26,7 @@ const JSConstSpec CJS_Font::ConstSpecs[] = { int CJS_Font::ObjDefnID = -1; // static -void CJS_Font::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) { - ObjDefnID = pEngine->DefineObj("font", eObjType, nullptr, nullptr); +void CJS_Font::DefineJSObjects(CFXJS_Engine* pEngine) { + ObjDefnID = pEngine->DefineObj("font", FXJSOBJTYPE_STATIC, nullptr, nullptr); DefineConsts(pEngine, ObjDefnID, ConstSpecs); } |