diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-10-05 12:11:03 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-05 17:04:48 +0000 |
commit | 5e2cfb5310c9b25a5ce4c772a6656373309bc956 (patch) | |
tree | daba5cee8c19d5035d532c4d47c0993f1cdae868 /core/fxcrt/xml/cxml_parser.cpp | |
parent | 41bf73a2c389d8fa811cabb1867b8b6a5585d5eb (diff) | |
download | pdfium-5e2cfb5310c9b25a5ce4c772a6656373309bc956.tar.xz |
Remove friends from CXML_Element
This CL removes the friends from CXML_Element and adds accessors as
needed.
Change-Id: I4f76935caa753a063bef4ff2d043273ae4e14e14
Reviewed-on: https://pdfium-review.googlesource.com/15535
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cxml_parser.cpp')
-rw-r--r-- | core/fxcrt/xml/cxml_parser.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/fxcrt/xml/cxml_parser.cpp b/core/fxcrt/xml/cxml_parser.cpp index adf83c7148..062b5bec07 100644 --- a/core/fxcrt/xml/cxml_parser.cpp +++ b/core/fxcrt/xml/cxml_parser.cpp @@ -424,7 +424,7 @@ std::unique_ptr<CXML_Element> CXML_Parser::ParseElementInternal( WideString attr_value; GetAttrValue(attr_value); - pElement->m_AttrMap.SetAt(attr_space, attr_name, attr_value); + pElement->SetAttribute(attr_space, attr_name, attr_value); } m_nOffset = m_nBufferOffset + static_cast<FX_FILESIZE>(m_dwIndex); if (m_dwIndex < m_dwBufferSize || IsEOF()) @@ -498,7 +498,7 @@ std::unique_ptr<CXML_Element> CXML_Parser::ParseElementInternal( if (!pSubElement) break; - pElement->m_Children.push_back(std::move(pSubElement)); + pElement->AppendChild(std::move(pSubElement)); SkipWhiteSpaces(); } break; @@ -541,6 +541,5 @@ void CXML_Parser::InsertContentSegment(bool bCDATA, if (content.IsEmpty()) return; - pElement->m_Children.push_back( - pdfium::MakeUnique<CXML_Content>(bCDATA, content)); + pElement->AppendChild(pdfium::MakeUnique<CXML_Content>(bCDATA, content)); } |