summaryrefslogtreecommitdiff
path: root/fxjs/cjs_scalewhen.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-11 15:55:17 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-11 15:55:17 +0000
commit8b4ddebff061b199f14684f17cac8915bade8fb2 (patch)
treee8b1f18bec5c1377dfe5a0967e2e6f78c3df9812 /fxjs/cjs_scalewhen.cpp
parent9bc7a213b95439ab91183ac6684bf01e09ae60c1 (diff)
downloadpdfium-8b4ddebff061b199f14684f17cac8915bade8fb2.tar.xz
Use spans in CJS_Object.
Avoid explicitly having to count items in arrays. Change-Id: I24a91db45e8a8530f38afcc273e824ffb70a6cb9 Reviewed-on: https://pdfium-review.googlesource.com/34710 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_scalewhen.cpp')
-rw-r--r--fxjs/cjs_scalewhen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_scalewhen.cpp b/fxjs/cjs_scalewhen.cpp
index 33f13cbe00..41dc41a8d1 100644
--- a/fxjs/cjs_scalewhen.cpp
+++ b/fxjs/cjs_scalewhen.cpp
@@ -18,7 +18,7 @@ int CJS_ScaleWhen::ObjDefnID = -1;
void CJS_ScaleWhen::DefineJSObjects(CFXJS_Engine* pEngine) {
ObjDefnID =
pEngine->DefineObj("scaleWhen", FXJSOBJTYPE_STATIC, nullptr, nullptr);
- DefineConsts(pEngine, ObjDefnID, ConstSpecs, FX_ArraySize(ConstSpecs));
+ DefineConsts(pEngine, ObjDefnID, ConstSpecs);
}
CJS_ScaleWhen::CJS_ScaleWhen(v8::Local<v8::Object> pObject,