From bef4d3e97bba3274add9738d6b199f7760c88f53 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 26 Oct 2017 16:49:38 -0400 Subject: 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 Reviewed-by: Tom Sepez --- fpdfsdk/javascript/cjs_position.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/javascript/cjs_position.cpp') diff --git a/fpdfsdk/javascript/cjs_position.cpp b/fpdfsdk/javascript/cjs_position.cpp index d53c514b73..744f159e60 100644 --- a/fpdfsdk/javascript/cjs_position.cpp +++ b/fpdfsdk/javascript/cjs_position.cpp @@ -19,8 +19,8 @@ const JSConstSpec CJS_Position::ConstSpecs[] = { int CJS_Position::ObjDefnID = -1; // static -void CJS_Position::DefineJSObjects(CFXJS_Engine* pEngine, - FXJSOBJTYPE eObjType) { - ObjDefnID = pEngine->DefineObj("position", eObjType, nullptr, nullptr); +void CJS_Position::DefineJSObjects(CFXJS_Engine* pEngine) { + ObjDefnID = + pEngine->DefineObj("position", FXJSOBJTYPE_STATIC, nullptr, nullptr); DefineConsts(pEngine, ObjDefnID, ConstSpecs); } -- cgit v1.2.3