diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-10-26 16:49:38 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-26 21:14:16 +0000 |
commit | bef4d3e97bba3274add9738d6b199f7760c88f53 (patch) | |
tree | 5a3d4204ead787e75323bc48d0ad3125c83bfaec /fpdfsdk/javascript/cjs_annot.cpp | |
parent | c94a793413938c4142bc8bedd40ae2fe2527f71a (diff) | |
download | pdfium-bef4d3e97bba3274add9738d6b199f7760c88f53.tar.xz |
Remove unneeded DefineJSObject param
The second parameter to DefineJSObject is always set the same for each
object type. Remove and put the value directly into the DefineObj calls.
Change-Id: If939c57fe6ea3b985ab2337eb30f472c668cdc42
Reviewed-on: https://pdfium-review.googlesource.com/16911
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/cjs_annot.cpp')
-rw-r--r-- | fpdfsdk/javascript/cjs_annot.cpp | 8 |
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); } |