diff options
Diffstat (limited to 'xfa/fxfa/parser/xfa_utils.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_utils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/xfa_utils.cpp b/xfa/fxfa/parser/xfa_utils.cpp index b17a7535eb..03b8943a1f 100644 --- a/xfa/fxfa/parser/xfa_utils.cpp +++ b/xfa/fxfa/parser/xfa_utils.cpp @@ -284,9 +284,8 @@ const XFA_ATTRIBUTEINFO* XFA_GetAttributeByName(const WideStringView& wsName) { } const XFA_ATTRIBUTEINFO* XFA_GetAttributeByID(XFA_Attribute eName) { - return (static_cast<uint8_t>(eName) < g_iXFAAttributeCount) - ? (g_XFAAttributeData + static_cast<uint8_t>(eName)) - : nullptr; + ASSERT(static_cast<uint8_t>(eName) < g_iXFAAttributeCount); + return g_XFAAttributeData + static_cast<uint8_t>(eName); } const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName( |