summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/cjs_annot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/cjs_annot.cpp')
-rw-r--r--fpdfsdk/javascript/cjs_annot.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/javascript/cjs_annot.cpp b/fpdfsdk/javascript/cjs_annot.cpp
index 29601cd4a6..84c8007309 100644
--- a/fpdfsdk/javascript/cjs_annot.cpp
+++ b/fpdfsdk/javascript/cjs_annot.cpp
@@ -33,10 +33,10 @@ int CJS_Annot::GetObjDefnID() {
}
// static
-void CJS_Annot::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) {
- ObjDefnID =
- pEngine->DefineObj("Annot", eObjType, JSConstructor<CJS_Annot, Annot>,
- JSDestructor<CJS_Annot>);
+void CJS_Annot::DefineJSObjects(CFXJS_Engine* pEngine) {
+ ObjDefnID = pEngine->DefineObj("Annot", FXJSOBJTYPE_DYNAMIC,
+ JSConstructor<CJS_Annot, Annot>,
+ JSDestructor<CJS_Annot>);
DefineProps(pEngine, ObjDefnID, PropertySpecs);
}