summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_desc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa/cjx_desc.cpp')
-rw-r--r--fxjs/xfa/cjx_desc.cpp5
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() {}