Index: xfa/fxfa/parser/xfa_utils_imp.cpp |
diff --git a/xfa/fxfa/parser/xfa_utils_imp.cpp b/xfa/fxfa/parser/xfa_utils_imp.cpp |
index 1b3dddc674943afcc9b65050797b91cad4782f8e..ec7a10c10d243e2f1687c8f685bc64ad5febb91f 100644 |
--- a/xfa/fxfa/parser/xfa_utils_imp.cpp |
+++ b/xfa/fxfa/parser/xfa_utils_imp.cpp |
@@ -197,7 +197,8 @@ void XFA_GetPlainTextFromRichText(CFDE_XMLNode* pXMLNode, |
CFDE_XMLElement* pXMLElement = static_cast<CFDE_XMLElement*>(pXMLNode); |
CFX_WideString wsTag; |
pXMLElement->GetLocalTagName(wsTag); |
- uint32_t uTag = FX_HashCode_String_GetW(wsTag, wsTag.GetLength(), TRUE); |
+ uint32_t uTag = |
+ FX_HashCode_String_GetW(wsTag.c_str(), wsTag.GetLength(), TRUE); |
if (uTag == 0x0001f714) { |
wsPlainText += L"\n"; |
} else if (uTag == 0x00000070) { |
@@ -321,7 +322,7 @@ FX_DOUBLE XFA_WideStringToDouble(const CFX_WideString& wsStringVal) { |
int32_t nExponent = 0; |
int32_t cc = 0; |
FX_BOOL bNegative = FALSE, bExpSign = FALSE; |
- const FX_WCHAR* str = (const FX_WCHAR*)wsValue; |
+ const FX_WCHAR* str = wsValue.c_str(); |
int32_t len = wsValue.GetLength(); |
if (str[0] == '+') { |
cc++; |