From 875e98c581952478f3a3ccef9b2f2e3ed06c5346 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 27 Sep 2017 10:53:11 -0400 Subject: 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 Commit-Queue: Ryan Harrison --- xfa/fgas/font/cfgas_pdffontmgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fgas/font/cfgas_pdffontmgr.cpp') diff --git a/xfa/fgas/font/cfgas_pdffontmgr.cpp b/xfa/fgas/font/cfgas_pdffontmgr.cpp index 0fd18aa9b9..af183c2f99 100644 --- a/xfa/fgas/font/cfgas_pdffontmgr.cpp +++ b/xfa/fgas/font/cfgas_pdffontmgr.cpp @@ -119,7 +119,7 @@ bool CFGAS_PDFFontMgr::PsNameMatchDRFontName(const ByteStringView& bsPsName, bool bStrictMatch) { ByteString bsDRName = bsDRFontName; bsDRName.Remove('-'); - FX_STRSIZE iPsLen = bsPsName.GetLength(); + size_t iPsLen = bsPsName.GetLength(); auto nIndex = bsDRName.Find(bsPsName); if (nIndex.has_value() && !bStrictMatch) return true; @@ -127,7 +127,7 @@ bool CFGAS_PDFFontMgr::PsNameMatchDRFontName(const ByteStringView& bsPsName, if (!nIndex.has_value() || nIndex.value() != 0) return false; - FX_STRSIZE iDifferLength = bsDRName.GetLength() - iPsLen; + size_t iDifferLength = bsDRName.GetLength() - iPsLen; if (iDifferLength > 1 || (bBold || bItalic)) { auto iBoldIndex = bsDRName.Find("Bold"); if (bBold != iBoldIndex.has_value()) -- cgit v1.2.3