From 88398a4286dd2bd228d79fb0f3296b9f79cbe4a9 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 11 Jun 2018 17:08:07 +0000 Subject: Use spans in CJX_Object. Avoid explicitly finding array sizes. Change-Id: Id51e3d10ea4db0a6375807a53309ce8d68b3b413 Reviewed-on: https://pdfium-review.googlesource.com/34750 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- fxjs/xfa/cjx_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs/xfa/cjx_object.h') diff --git a/fxjs/xfa/cjx_object.h b/fxjs/xfa/cjx_object.h index ac17a04522..1c5e40514e 100644 --- a/fxjs/xfa/cjx_object.h +++ b/fxjs/xfa/cjx_object.h @@ -17,6 +17,7 @@ #include "core/fxcrt/xml/cfx_xmlelement.h" #include "fxjs/cjx_define.h" #include "third_party/base/optional.h" +#include "third_party/base/span.h" #include "xfa/fxfa/fxfa_basic.h" class CFXJSE_Value; @@ -218,8 +219,7 @@ class CJX_Object { void ThrowTooManyOccurancesException(const WideString& obj) const; protected: - void DefineMethods(const CJX_MethodSpec method_specs[], size_t count); - + void DefineMethods(pdfium::span methods); void MoveBufferMapData(CXFA_Object* pSrcModule, CXFA_Object* pDstModule); void SetMapModuleString(void* pKey, const WideStringView& wsValue); void ThrowException(const wchar_t* str, ...) const; -- cgit v1.2.3