summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_arraynodelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_arraynodelist.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_arraynodelist.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_arraynodelist.cpp b/xfa/fxfa/parser/cxfa_arraynodelist.cpp
index 9ea36d3c24..9eaf9a6c33 100644
--- a/xfa/fxfa/parser/cxfa_arraynodelist.cpp
+++ b/xfa/fxfa/parser/cxfa_arraynodelist.cpp
@@ -48,7 +48,6 @@ bool CXFA_ArrayNodeList::Remove(CXFA_Node* pNode) {
return true;
}
-CXFA_Node* CXFA_ArrayNodeList::Item(int32_t iIndex) {
- int32_t iSize = pdfium::CollectionSize<int32_t>(m_array);
- return (iIndex >= 0 && iIndex < iSize) ? m_array[iIndex] : nullptr;
+CXFA_Node* CXFA_ArrayNodeList::Item(size_t index) {
+ return index < m_array.size() ? m_array[index] : nullptr;
}