| Index: core/src/fxcrt/fx_xml_parser.cpp
|
| diff --git a/core/src/fxcrt/fx_xml_parser.cpp b/core/src/fxcrt/fx_xml_parser.cpp
|
| index 3608a74a93365ba814e619bc64e09583feededf4..4a0b9a1d4ff894624d71a6bb3e71d257ec83ea40 100644
|
| --- a/core/src/fxcrt/fx_xml_parser.cpp
|
| +++ b/core/src/fxcrt/fx_xml_parser.cpp
|
| @@ -672,7 +672,7 @@ FX_BOOL CXML_Element::GetAttrValue(FX_BSTR name, CFX_WideString& attribute) cons
|
| FX_XML_SplitQualifiedName(name, bsSpace, bsName);
|
| const CFX_WideString* pValue = m_AttrMap.Lookup(bsSpace, bsName);
|
| if (pValue) {
|
| - attribute = CFX_WideString((FX_LPCWSTR)pValue, pValue->GetLength());
|
| + attribute = CFX_WideString(pValue->c_str(), pValue->GetLength());
|
| return TRUE;
|
| }
|
| return FALSE;
|
| @@ -681,7 +681,7 @@ FX_BOOL CXML_Element::GetAttrValue(FX_BSTR space, FX_BSTR name, CFX_WideString&
|
| {
|
| const CFX_WideString* pValue = m_AttrMap.Lookup(space, name);
|
| if (pValue) {
|
| - attribute = CFX_WideString((FX_LPCWSTR)pValue, pValue->GetLength());
|
| + attribute = CFX_WideString(pValue->c_str(), pValue->GetLength());
|
| return TRUE;
|
| }
|
| return FALSE;
|
|
|