diff options
Diffstat (limited to 'fxjs/xfa/cjx_desc.cpp')
-rw-r--r-- | fxjs/xfa/cjx_desc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/xfa/cjx_desc.cpp b/fxjs/xfa/cjx_desc.cpp index 7ff58a774a..03ab8f8d21 100644 --- a/fxjs/xfa/cjx_desc.cpp +++ b/fxjs/xfa/cjx_desc.cpp @@ -12,11 +12,10 @@ #include "fxjs/js_resources.h" #include "xfa/fxfa/parser/cxfa_desc.h" -const CJX_MethodSpec CJX_Desc::MethodSpecs[] = {{"metadata", metadata_static}, - {"", nullptr}}; +const CJX_MethodSpec CJX_Desc::MethodSpecs[] = {{"metadata", metadata_static}}; CJX_Desc::CJX_Desc(CXFA_Desc* desc) : CJX_Node(desc) { - DefineMethods(MethodSpecs); + DefineMethods(MethodSpecs, FX_ArraySize(MethodSpecs)); } CJX_Desc::~CJX_Desc() {} |