Index: fpdfsdk/src/pdfwindow/PWL_Edit.cpp |
diff --git a/fpdfsdk/src/pdfwindow/PWL_Edit.cpp b/fpdfsdk/src/pdfwindow/PWL_Edit.cpp |
index dfdbf64f0e767637fd62e6c303a41c818e115094..d7207e973022dd9930262d0bfb969331643ece3a 100644 |
--- a/fpdfsdk/src/pdfwindow/PWL_Edit.cpp |
+++ b/fpdfsdk/src/pdfwindow/PWL_Edit.cpp |
@@ -44,7 +44,7 @@ void CPWL_Edit::SetText(FX_LPCWSTR csText) |
{ |
CFX_ByteString sValue = CFX_ByteString::FromUnicode(swText); |
- if (CXML_Element * pXML = CXML_Element::Parse((FX_LPCSTR)sValue,sValue.GetLength())) |
+ if (CXML_Element * pXML = CXML_Element::Parse(sValue.c_str(), sValue.GetLength())) |
brucedawson
2014/12/30 23:13:02
Indent.
|
{ |
FX_INT32 nCount = pXML->CountChildren(); |
FX_BOOL bFirst = TRUE; |