summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/app.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-26 16:48:57 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-26 21:07:36 +0000
commitc94a793413938c4142bc8bedd40ae2fe2527f71a (patch)
tree9e938c2dcf0204508b52fedb7022e92e92bc55ba /fpdfsdk/javascript/app.cpp
parentef299534cce8cc42f1bd13665a75947c88195ce0 (diff)
downloadpdfium-c94a793413938c4142bc8bedd40ae2fe2527f71a.tar.xz
Make spec arrays const
This CL marks all of the Spec arrays as const. Change-Id: Ie36f670a4230fcac2cba5544b9c6e5179b0c7073 Reviewed-on: https://pdfium-review.googlesource.com/16951 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/app.cpp')
-rw-r--r--fpdfsdk/javascript/app.cpp47
1 files changed, 24 insertions, 23 deletions
diff --git a/fpdfsdk/javascript/app.cpp b/fpdfsdk/javascript/app.cpp
index 9cc13ea21d..0c55ee6123 100644
--- a/fpdfsdk/javascript/app.cpp
+++ b/fpdfsdk/javascript/app.cpp
@@ -176,7 +176,7 @@ void TimerObj::SetTimer(GlobalTimer* pTimer) {
#endif // PDF_ENABLE_XFA
#define JS_NUM_FORMSVERSION 7
-JSPropertySpec CJS_App::PropertySpecs[] = {
+const JSPropertySpec CJS_App::PropertySpecs[] = {
{"activeDocs", get_active_docs_static, set_active_docs_static},
{"calculate", get_calculate_static, set_calculate_static},
{"formsVersion", get_forms_version_static, set_forms_version_static},
@@ -193,28 +193,29 @@ JSPropertySpec CJS_App::PropertySpecs[] = {
{"viewerVersion", get_viewer_version_static, set_viewer_version_static},
{0, 0, 0}};
-JSMethodSpec CJS_App::MethodSpecs[] = {{"alert", alert_static},
- {"beep", beep_static},
- {"browseForDoc", browseForDoc_static},
- {"clearInterval", clearInterval_static},
- {"clearTimeOut", clearTimeOut_static},
- {"execDialog", execDialog_static},
- {"execMenuItem", execMenuItem_static},
- {"findComponent", findComponent_static},
- {"goBack", goBack_static},
- {"goForward", goForward_static},
- {"launchURL", launchURL_static},
- {"mailMsg", mailMsg_static},
- {"newFDF", newFDF_static},
- {"newDoc", newDoc_static},
- {"openDoc", openDoc_static},
- {"openFDF", openFDF_static},
- {"popUpMenuEx", popUpMenuEx_static},
- {"popUpMenu", popUpMenu_static},
- {"response", response_static},
- {"setInterval", setInterval_static},
- {"setTimeOut", setTimeOut_static},
- {0, 0}};
+const JSMethodSpec CJS_App::MethodSpecs[] = {
+ {"alert", alert_static},
+ {"beep", beep_static},
+ {"browseForDoc", browseForDoc_static},
+ {"clearInterval", clearInterval_static},
+ {"clearTimeOut", clearTimeOut_static},
+ {"execDialog", execDialog_static},
+ {"execMenuItem", execMenuItem_static},
+ {"findComponent", findComponent_static},
+ {"goBack", goBack_static},
+ {"goForward", goForward_static},
+ {"launchURL", launchURL_static},
+ {"mailMsg", mailMsg_static},
+ {"newFDF", newFDF_static},
+ {"newDoc", newDoc_static},
+ {"openDoc", openDoc_static},
+ {"openFDF", openFDF_static},
+ {"popUpMenuEx", popUpMenuEx_static},
+ {"popUpMenu", popUpMenu_static},
+ {"response", response_static},
+ {"setInterval", setInterval_static},
+ {"setTimeOut", setTimeOut_static},
+ {0, 0}};
int CJS_App::ObjDefnID = -1;