Index: xfa/fxfa/app/xfa_ffdocview.cpp |
diff --git a/xfa/fxfa/app/xfa_ffdocview.cpp b/xfa/fxfa/app/xfa_ffdocview.cpp |
index 9c627ea3c1b28d9ef3d17b80062cb85ecd50dd16..daa5fd6277c49dc6c80ac213f87e2a300d57206c 100644 |
--- a/xfa/fxfa/app/xfa_ffdocview.cpp |
+++ b/xfa/fxfa/app/xfa_ffdocview.cpp |
@@ -157,7 +157,7 @@ void CXFA_FFDocView::ShowNullTestMsg() { |
pAppProvider->LoadString(XFA_IDS_ValidateLimit, wsLimit); |
if (!wsLimit.IsEmpty()) { |
CFX_WideString wsTemp; |
- wsTemp.Format((const FX_WCHAR*)wsLimit, iRemain); |
+ wsTemp.Format(wsLimit.c_str(), iRemain); |
wsMsg += FX_WSTRC(L"\n") + wsTemp; |
} |
} |
@@ -792,8 +792,8 @@ void CXFA_FFDocView::RunBindItems() { |
const bool bValueUseContent = |
wsValueRef.IsEmpty() || wsValueRef == FX_WSTRC(L"$"); |
CFX_WideString wsValue, wsLabel; |
- uint32_t uValueHash = FX_HashCode_String_GetW(CFX_WideString(wsValueRef), |
- wsValueRef.GetLength()); |
+ uint32_t uValueHash = |
+ FX_HashCode_String_GetW(wsValueRef.c_str(), wsValueRef.GetLength()); |
for (int32_t i = 0; i < iCount; i++) { |
CXFA_Object* refObj = rs.nodes[i]; |
if (!refObj->IsNode()) { |