diff options
Diffstat (limited to 'xfa/fxfa/parser/xfa_basic_data_attributes.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_basic_data_attributes.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/xfa_basic_data_attributes.cpp b/xfa/fxfa/parser/xfa_basic_data_attributes.cpp index 66f5c893ba..7b371a0239 100644 --- a/xfa/fxfa/parser/xfa_basic_data_attributes.cpp +++ b/xfa/fxfa/parser/xfa_basic_data_attributes.cpp @@ -704,6 +704,9 @@ const XFA_ATTRIBUTEINFO g_XFAAttributeData[] = { }; const int32_t g_iXFAAttributeCount = sizeof(g_XFAAttributeData) / sizeof(XFA_ATTRIBUTEINFO); +static_assert(g_iXFAAttributeCount == + static_cast<int32_t>(XFA_Attribute::LastAttributePlaceholder), + "Attribute count mismatch"); const XFA_NOTSUREATTRIBUTE g_XFANotsureAttributes[] = { {XFA_Element::SubformSet, XFA_Attribute::Relation, XFA_AttributeType::Enum, |