diff options
Diffstat (limited to 'core/fxcrt')
-rw-r--r-- | core/fxcrt/xml/cfx_xmlnode.cpp | 6 | ||||
-rw-r--r-- | core/fxcrt/xml/cfx_xmlparser.cpp | 3 | ||||
-rw-r--r-- | core/fxcrt/xml/cfx_xmlsyntaxparser.cpp | 3 |
3 files changed, 6 insertions, 6 deletions
diff --git a/core/fxcrt/xml/cfx_xmlnode.cpp b/core/fxcrt/xml/cfx_xmlnode.cpp index f2b9006ebf..601999cbad 100644 --- a/core/fxcrt/xml/cfx_xmlnode.cpp +++ b/core/fxcrt/xml/cfx_xmlnode.cpp @@ -90,11 +90,9 @@ CFX_XMLNode* CFX_XMLNode::GetPath(const wchar_t* pPath, wchar_t ch; while (pStart < pEnd) { ch = *pStart++; - if (ch == L'/') { + if (ch == L'/') break; - } else { - csPath += ch; - } + csPath += ch; } iLength -= pStart - pPath; CFX_XMLNode* pFind = nullptr; diff --git a/core/fxcrt/xml/cfx_xmlparser.cpp b/core/fxcrt/xml/cfx_xmlparser.cpp index a8bb2c9565..0f08b06255 100644 --- a/core/fxcrt/xml/cfx_xmlparser.cpp +++ b/core/fxcrt/xml/cfx_xmlparser.cpp @@ -72,7 +72,8 @@ int32_t CFX_XMLParser::DoParser() { if (m_NodeStack.empty()) { m_syntaxParserResult = FX_XmlSyntaxResult::Error; break; - } else if (m_dwCurrentCheckStatus != 0 && m_NodeStack.size() == 2) { + } + if (m_dwCurrentCheckStatus != 0 && m_NodeStack.size() == 2) { m_nSize[m_dwCurrentCheckStatus - 1] = m_pParser->GetCurrentBinaryPos() - m_nStart[m_dwCurrentCheckStatus - 1]; diff --git a/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp b/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp index d72e7afa1d..c0cc1a6ac9 100644 --- a/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp +++ b/core/fxcrt/xml/cfx_xmlsyntaxparser.cpp @@ -535,7 +535,8 @@ FX_XmlSyntaxResult CFX_XMLSyntaxParser::DoSyntaxParse() { if (m_BlockBuffer.IsEmpty()) { m_Start++; break; - } else if (m_wQuotationMark == 0) { + } + if (m_wQuotationMark == 0) { m_iTextDataLength = m_BlockBuffer.GetDataLength(); m_wQuotationMark = 0; m_BlockBuffer.Reset(true); |