summaryrefslogtreecommitdiff
path: root/core/fpdfdoc
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-27 10:53:11 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 16:11:38 +0000
commit875e98c581952478f3a3ccef9b2f2e3ed06c5346 (patch)
tree8e0d7e032056bf4c73d6da43c0f3ce4eadb74dfd /core/fpdfdoc
parentcc3a3ee3ebcc1baabdfa7ffca5876dbbfa3980c1 (diff)
downloadpdfium-875e98c581952478f3a3ccef9b2f2e3ed06c5346.tar.xz
Remove FX_STRSIZE and replace with size_t
BUG=pdfium:828 Change-Id: I5c40237433ebabaeabdb43aec9cdf783e41dfe16 Reviewed-on: https://pdfium-review.googlesource.com/13230 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r--core/fpdfdoc/cpdf_interform.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_interform.cpp b/core/fpdfdoc/cpdf_interform.cpp
index f17e543e70..50db639a4f 100644
--- a/core/fpdfdoc/cpdf_interform.cpp
+++ b/core/fpdfdoc/cpdf_interform.cpp
@@ -306,12 +306,12 @@ class CFieldNameExtractor {
m_pEnd = m_pCur + m_FullName.GetLength();
}
- void GetNext(const wchar_t*& pSubName, FX_STRSIZE& size) {
+ void GetNext(const wchar_t*& pSubName, size_t& size) {
pSubName = m_pCur;
while (m_pCur < m_pEnd && m_pCur[0] != L'.')
m_pCur++;
- size = (FX_STRSIZE)(m_pCur - pSubName);
+ size = static_cast<size_t>(m_pCur - pSubName);
if (m_pCur < m_pEnd && m_pCur[0] == L'.')
m_pCur++;
}
@@ -376,7 +376,7 @@ int CompareFieldName(const WideString& name1, const WideString& name2) {
if (name1.GetLength() == name2.GetLength())
return name1 == name2 ? 1 : 0;
- FX_STRSIZE i = 0;
+ size_t i = 0;
while (ptr1[i] == ptr2[i])
i++;
if (i == name1.GetLength())
@@ -509,7 +509,7 @@ bool CFieldTree::SetField(const WideString& full_name,
CFieldNameExtractor name_extractor(full_name);
const wchar_t* pName;
- FX_STRSIZE nLength;
+ size_t nLength;
name_extractor.GetNext(pName, nLength);
Node* pNode = &m_Root;
Node* pLast = nullptr;
@@ -537,7 +537,7 @@ CPDF_FormField* CFieldTree::GetField(const WideString& full_name) {
CFieldNameExtractor name_extractor(full_name);
const wchar_t* pName;
- FX_STRSIZE nLength;
+ size_t nLength;
name_extractor.GetNext(pName, nLength);
Node* pNode = &m_Root;
Node* pLast = nullptr;
@@ -556,7 +556,7 @@ CFieldTree::Node* CFieldTree::FindNode(const WideString& full_name) {
CFieldNameExtractor name_extractor(full_name);
const wchar_t* pName;
- FX_STRSIZE nLength;
+ size_t nLength;
name_extractor.GetNext(pName, nLength);
Node* pNode = &m_Root;
Node* pLast = nullptr;