summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/cjs_font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/cjs_font.cpp')
-rw-r--r--fpdfsdk/javascript/cjs_font.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/cjs_font.cpp b/fpdfsdk/javascript/cjs_font.cpp
index 0a9f02f2f1..889c0bb8d2 100644
--- a/fpdfsdk/javascript/cjs_font.cpp
+++ b/fpdfsdk/javascript/cjs_font.cpp
@@ -23,11 +23,9 @@ JSConstSpec CJS_Font::ConstSpecs[] = {
{"ZapfD", JSConstSpec::String, 0, "ZapfDingbats"},
{0, JSConstSpec::Number, 0, 0}};
-const char* CJS_Font::g_pClassName = "font";
int CJS_Font::g_nObjDefnID = -1;
void CJS_Font::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- g_nObjDefnID =
- pEngine->DefineObj(CJS_Font::g_pClassName, eObjType, nullptr, nullptr);
+ g_nObjDefnID = pEngine->DefineObj("font", eObjType, nullptr, nullptr);
DefineConsts(pEngine, g_nObjDefnID, ConstSpecs);
}