summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/app.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-26 16:49:38 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-26 21:14:16 +0000
commitbef4d3e97bba3274add9738d6b199f7760c88f53 (patch)
tree5a3d4204ead787e75323bc48d0ad3125c83bfaec /fpdfsdk/javascript/app.h
parentc94a793413938c4142bc8bedd40ae2fe2527f71a (diff)
downloadpdfium-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/app.h')
-rw-r--r--fpdfsdk/javascript/app.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/app.h b/fpdfsdk/javascript/app.h
index 7307a73d97..ea95398c80 100644
--- a/fpdfsdk/javascript/app.h
+++ b/fpdfsdk/javascript/app.h
@@ -31,7 +31,7 @@ class TimerObj : public CJS_EmbedObj {
class CJS_TimerObj : public CJS_Object {
public:
static int GetObjDefnID();
- static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType);
+ static void DefineJSObjects(CFXJS_Engine* pEngine);
explicit CJS_TimerObj(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_TimerObj() override {}
@@ -144,7 +144,7 @@ class app : public CJS_EmbedObj {
class CJS_App : public CJS_Object {
public:
- static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType);
+ static void DefineJSObjects(CFXJS_Engine* pEngine);
explicit CJS_App(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_App() override {}