| 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 5649a7db0eee6cd674d4ff8c3a1781853f606e76..c2f1f6433b84a8009a5c06c4aad00c96baeddd53 100644
|
| --- a/core/src/fxcrt/fx_xml_parser.cpp
|
| +++ b/core/src/fxcrt/fx_xml_parser.cpp
|
| @@ -12,7 +12,7 @@ CXML_Parser::~CXML_Parser()
|
| m_pDataAcc->Release();
|
| }
|
| }
|
| -FX_BOOL CXML_Parser::Init(FX_LPBYTE pBuffer, size_t size)
|
| +FX_BOOL CXML_Parser::Init(uint8_t* pBuffer, size_t size)
|
| {
|
| m_pDataAcc = new CXML_DataBufAcc(pBuffer, size);
|
| return Init(TRUE);
|
| @@ -473,7 +473,7 @@ CXML_Element* CXML_Parser::ParseElement(CXML_Element* pParent, FX_BOOL bStartTag
|
| break;
|
| }
|
| pSubElement->m_pParent = pElement;
|
| - pElement->m_Children.Add((FX_LPVOID)CXML_Element::Element);
|
| + pElement->m_Children.Add((void*)CXML_Element::Element);
|
| pElement->m_Children.Add(pSubElement);
|
| SkipWhiteSpaces();
|
| }
|
| @@ -519,7 +519,7 @@ void CXML_Parser::InsertContentSegment(FX_BOOL bCDATA, FX_WSTR content, CXML_Ele
|
| }
|
| CXML_Content* pContent = new CXML_Content;
|
| pContent->Set(bCDATA, content);
|
| - pElement->m_Children.Add((FX_LPVOID)CXML_Element::Content);
|
| + pElement->m_Children.Add((void*)CXML_Element::Content);
|
| pElement->m_Children.Add(pContent);
|
| }
|
| static CXML_Element* XML_ContinueParse(CXML_Parser &parser, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize)
|
| @@ -534,7 +534,7 @@ static CXML_Element* XML_ContinueParse(CXML_Parser &parser, FX_BOOL bSaveSpaceCh
|
| CXML_Element* CXML_Element::Parse(const void* pBuffer, size_t size, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize)
|
| {
|
| CXML_Parser parser;
|
| - if (!parser.Init((FX_LPBYTE)pBuffer, size)) {
|
| + if (!parser.Init((uint8_t*)pBuffer, size)) {
|
| return NULL;
|
| }
|
| return XML_ContinueParse(parser, bSaveSpaceChars, pParsedSize);
|
|
|