summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Field.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/Field.cpp')
-rw-r--r--fpdfsdk/javascript/Field.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp
index 288a24d084..0a35bf5dd4 100644
--- a/fpdfsdk/javascript/Field.cpp
+++ b/fpdfsdk/javascript/Field.cpp
@@ -165,13 +165,12 @@ JSMethodSpec CJS_Field::MethodSpecs[] = {
{"signatureValidate", signatureValidate_static},
{0, 0}};
-const char* CJS_Field::g_pClassName = "Field";
int CJS_Field::g_nObjDefnID = -1;
void CJS_Field::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- g_nObjDefnID = pEngine->DefineObj(CJS_Field::g_pClassName, eObjType,
- JSConstructor<CJS_Field, Field>,
- JSDestructor<CJS_Field>);
+ g_nObjDefnID =
+ pEngine->DefineObj("Field", eObjType, JSConstructor<CJS_Field, Field>,
+ JSDestructor<CJS_Field>);
DefineProps(pEngine, g_nObjDefnID, PropertySpecs);
DefineMethods(pEngine, g_nObjDefnID, MethodSpecs);
}