summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Icon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/Icon.cpp')
-rw-r--r--fpdfsdk/javascript/Icon.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/Icon.cpp b/fpdfsdk/javascript/Icon.cpp
index e096e3a4ba..df7561ea8b 100644
--- a/fpdfsdk/javascript/Icon.cpp
+++ b/fpdfsdk/javascript/Icon.cpp
@@ -22,9 +22,10 @@ int CJS_Icon::GetObjDefnID() {
}
// static
-void CJS_Icon::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- ObjDefnID = pEngine->DefineObj(
- "Icon", eObjType, JSConstructor<CJS_Icon, Icon>, JSDestructor<CJS_Icon>);
+void CJS_Icon::DefineJSObjects(CFXJS_Engine* pEngine) {
+ ObjDefnID =
+ pEngine->DefineObj("Icon", FXJSOBJTYPE_DYNAMIC,
+ JSConstructor<CJS_Icon, Icon>, JSDestructor<CJS_Icon>);
DefineProps(pEngine, ObjDefnID, PropertySpecs);
}