diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-01 17:19:56 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-01 17:19:56 +0000 |
commit | 48ce3d08faa51bf00edaa3ae0afda9bf86e14a39 (patch) | |
tree | eae58a710e2c8ba883368ecacbeb31b00a4b6db2 /xfa/fxfa/parser/xfa_basic_data_element_script.cpp | |
parent | 842c26506fae8852299b498bdd00365e561ef7e2 (diff) | |
download | pdfium-48ce3d08faa51bf00edaa3ae0afda9bf86e14a39.tar.xz |
Use size_t and FX_ArraySize() for some arrays.
Change-Id: Ib8caef1f46478e9bf1c0e717997accb71000124a
Reviewed-on: https://pdfium-review.googlesource.com/43192
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_basic_data_element_script.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_basic_data_element_script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/xfa_basic_data_element_script.cpp b/xfa/fxfa/parser/xfa_basic_data_element_script.cpp index 3dd179e825..e15aedd70e 100644 --- a/xfa/fxfa/parser/xfa_basic_data_element_script.cpp +++ b/xfa/fxfa/parser/xfa_basic_data_element_script.cpp @@ -471,8 +471,8 @@ const XFA_SCRIPTHIERARCHY g_XFAScriptIndex[] = { {/* */ 1072, 0, 316}, {/* */ 1072, 2, 316}, {/* */ 1074, 2, 316}}; -const int32_t g_iScriptIndexCount = - sizeof(g_XFAScriptIndex) / sizeof(XFA_SCRIPTHIERARCHY); +const size_t g_szScriptIndexCount = FX_ArraySize(g_XFAScriptIndex); + const XFA_SCRIPTATTRIBUTEINFO g_SomAttributeData[] = { /* ps */ {0xbe52dfbf, L"desc", @@ -3807,4 +3807,4 @@ const XFA_SCRIPTATTRIBUTEINFO g_SomAttributeData[] = { (XFA_ATTRIBUTE_CALLBACK)&CJX_Object::Script_Som_DefaultValue, XFA_Attribute::Unknown, XFA_ScriptType::Basic}, }; -const int32_t g_iSomAttributeCount = FX_ArraySize(g_SomAttributeData); +const size_t g_szSomAttributeCount = FX_ArraySize(g_SomAttributeData); |