From 9a3a077e4820efa035eca4aec7e93fbd1298d6cb Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 13 Dec 2017 14:36:52 +0000 Subject: Use size_t in CXML_Element and callers. Change-Id: I9ebacd18252a837f1f5f13ccaec19b196bacc3ae Reviewed-on: https://pdfium-review.googlesource.com/21072 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fpdfsdk/pwl/cpwl_edit.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/pwl') diff --git a/fpdfsdk/pwl/cpwl_edit.cpp b/fpdfsdk/pwl/cpwl_edit.cpp index 650db5438b..f2ed03dea4 100644 --- a/fpdfsdk/pwl/cpwl_edit.cpp +++ b/fpdfsdk/pwl/cpwl_edit.cpp @@ -56,15 +56,15 @@ void CPWL_Edit::SetText(const WideString& csText) { swText.clear(); bool bFirst = true; - int32_t nCount = pXML->CountChildren(); - for (int32_t i = 0; i < nCount; i++) { + size_t nCount = pXML->CountChildren(); + for (size_t i = 0; i < nCount; ++i) { CXML_Element* pSubElement = ToElement(pXML->GetChild(i)); if (!pSubElement || !pSubElement->GetTagName().EqualNoCase("p")) continue; WideString swSection; - int nSubChild = pSubElement->CountChildren(); - for (int32_t j = 0; j < nSubChild; j++) { + size_t nSubChild = pSubElement->CountChildren(); + for (size_t j = 0; j < nSubChild; ++j) { CXML_Content* pSubContent = ToContent(pSubElement->GetChild(j)); if (pSubContent) swSection += pSubContent->m_Content; -- cgit v1.2.3