From 8b1408e7053247def45659515cda19a64a7fccd5 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 27 Sep 2017 11:07:51 -0400 Subject: Remove FXSYS_strlen and FXSYS_wcslen With the conversion of internal string sizes to size_t, these wrappers are no longer needed. Replacing them with strlen and wcslen respectively. BUG=pdfium:828 Change-Id: Ia087ca2ddaf688a57ec9bd9ddfb8533cbe41510d Reviewed-on: https://pdfium-review.googlesource.com/14890 Commit-Queue: Ryan Harrison Reviewed-by: dsinclair --- fpdfsdk/javascript/util.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/javascript/util.cpp') diff --git a/fpdfsdk/javascript/util.cpp b/fpdfsdk/javascript/util.cpp index c4b15685dd..b82020d874 100644 --- a/fpdfsdk/javascript/util.cpp +++ b/fpdfsdk/javascript/util.cpp @@ -206,7 +206,7 @@ bool util::printd(CJS_Runtime* pRuntime, int iEnd; while ((iEnd = cFormat.find(TbConvertTable[i].lpszJSMark, iStart)) != -1) { - cFormat.replace(iEnd, FXSYS_wcslen(TbConvertTable[i].lpszJSMark), + cFormat.replace(iEnd, wcslen(TbConvertTable[i].lpszJSMark), TbConvertTable[i].lpszCppMark); iStart = iEnd; } @@ -243,8 +243,7 @@ bool util::printd(CJS_Runtime* pRuntime, continue; } } - cFormat.replace(iEnd, FXSYS_wcslen(cTableAd[i].lpszJSMark), - sValue.c_str()); + cFormat.replace(iEnd, wcslen(cTableAd[i].lpszJSMark), sValue.c_str()); iStart = iEnd; } } -- cgit v1.2.3