diff options
Diffstat (limited to 'fxjs/xfa/cjx_object.cpp')
-rw-r--r-- | fxjs/xfa/cjx_object.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fxjs/xfa/cjx_object.cpp b/fxjs/xfa/cjx_object.cpp index 81ba1ac3d2..d66483dd74 100644 --- a/fxjs/xfa/cjx_object.cpp +++ b/fxjs/xfa/cjx_object.cpp @@ -80,8 +80,9 @@ CJX_Object::~CJX_Object() { ClearMapModuleBuffer(); } -void CJX_Object::DefineMethods(const CJX_MethodSpec method_specs[]) { - for (size_t i = 0; method_specs[i].pMethodCall != nullptr; ++i) +void CJX_Object::DefineMethods(const CJX_MethodSpec method_specs[], + size_t count) { + for (size_t i = 0; i < count; ++i) method_specs_[method_specs[i].pName] = method_specs[i].pMethodCall; } |