diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-01-04 13:57:02 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-04 19:15:31 +0000 |
commit | cb6c8d4ec4781c7db8448f2b4d9a8af879cf014e (patch) | |
tree | de752e161b1196c6b26b2f34418b7dff7ee39b64 /xfa/fxfa/parser/cxfa_arraynodelist.cpp | |
parent | 981a2908d7a213363772d1846a7c63c2cfd73c7e (diff) | |
download | pdfium-cb6c8d4ec4781c7db8448f2b4d9a8af879cf014e.tar.xz |
Make CXFA_List::GetLength return a size_t
This requires a number of other minor cleanups to get sizes and
signedness agreeing everywhere.
Change-Id: Ie25318a23d458be5a8a2a91927c3b37eb198f5ce
Reviewed-on: https://pdfium-review.googlesource.com/22256
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_arraynodelist.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_arraynodelist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_arraynodelist.cpp b/xfa/fxfa/parser/cxfa_arraynodelist.cpp index 3b32d8f022..9ea36d3c24 100644 --- a/xfa/fxfa/parser/cxfa_arraynodelist.cpp +++ b/xfa/fxfa/parser/cxfa_arraynodelist.cpp @@ -21,8 +21,8 @@ void CXFA_ArrayNodeList::SetArrayNodeList( m_array = srcArray; } -int32_t CXFA_ArrayNodeList::GetLength() { - return pdfium::CollectionSize<int32_t>(m_array); +size_t CXFA_ArrayNodeList::GetLength() { + return m_array.size(); } bool CXFA_ArrayNodeList::Append(CXFA_Node* pNode) { |