diff options
Diffstat (limited to 'fpdfsdk/javascript/Icon.cpp')
-rw-r--r-- | fpdfsdk/javascript/Icon.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fpdfsdk/javascript/Icon.cpp b/fpdfsdk/javascript/Icon.cpp index ab37e13198..7a0c758d15 100644 --- a/fpdfsdk/javascript/Icon.cpp +++ b/fpdfsdk/javascript/Icon.cpp @@ -14,13 +14,11 @@ JSPropertySpec CJS_Icon::PropertySpecs[] = { {"name", get_name_static, set_name_static}, {0, 0, 0}}; -const char* CJS_Icon::g_pClassName = "Icon"; int CJS_Icon::g_nObjDefnID = -1; void CJS_Icon::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) { - g_nObjDefnID = - pEngine->DefineObj(CJS_Icon::g_pClassName, eObjType, - JSConstructor<CJS_Icon, Icon>, JSDestructor<CJS_Icon>); + g_nObjDefnID = pEngine->DefineObj( + "Icon", eObjType, JSConstructor<CJS_Icon, Icon>, JSDestructor<CJS_Icon>); DefineProps(pEngine, g_nObjDefnID, PropertySpecs); } |