From 31c7b73b71bd7352f96a82716b5e81d7fa24f37f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 19 Feb 2016 10:53:24 -0800 Subject: Remove CFX_{Byte,Wide}String::ConvertFrom(). Use/add CFX_{Byte,Wide}String::FromFoo() instead. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1711893003 . --- core/src/fxcrt/fx_extension.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/fxcrt/fx_extension.cpp') diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp index fa6245c9d3..cae1763c7e 100644 --- a/core/src/fxcrt/fx_extension.cpp +++ b/core/src/fxcrt/fx_extension.cpp @@ -133,7 +133,8 @@ FX_FLOAT FXSYS_strtof(const FX_CHAR* pcsStr, if (iLength < 0) { iLength = (int32_t)FXSYS_strlen(pcsStr); } - CFX_WideString ws = CFX_WideString::FromLocal(pcsStr, iLength); + CFX_WideString ws = + CFX_WideString::FromLocal(CFX_ByteString(pcsStr, iLength)); return FXSYS_wcstof(ws.c_str(), iLength, pUsedLen); } FX_FLOAT FXSYS_wcstof(const FX_WCHAR* pwsStr, -- cgit v1.2.3