summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/report.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/report.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/report.cpp')
-rw-r--r--fpdfsdk/javascript/report.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/report.cpp b/fpdfsdk/javascript/report.cpp
index f52ffc5201..3e18cb8909 100644
--- a/fpdfsdk/javascript/report.cpp
+++ b/fpdfsdk/javascript/report.cpp
@@ -12,9 +12,9 @@
#include "fpdfsdk/javascript/JS_Object.h"
#include "fpdfsdk/javascript/JS_Value.h"
-JSMethodSpec CJS_Report::MethodSpecs[] = {{"save", save_static},
- {"writeText", writeText_static},
- {0, 0}};
+const JSMethodSpec CJS_Report::MethodSpecs[] = {{"save", save_static},
+ {"writeText", writeText_static},
+ {0, 0}};
int CJS_Report::ObjDefnID = -1;