diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-13 21:09:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-13 21:09:32 +0000 |
commit | 20eb52e66c565d36a78dc1399f04f7485ccf8fe6 (patch) | |
tree | 679fc502d00ce8807295053b2e5e5ac79e14d43d /core/fxcrt/xml/cfx_xmlelement.cpp | |
parent | 80bf582f00adeefae67ae432b74c3b0609e7845e (diff) | |
download | pdfium-20eb52e66c565d36a78dc1399f04f7485ccf8fe6.tar.xz |
Cleanup CFX_XMLNode and friendschromium/3347
This CL removes unused methods from CFX_XMLNode, adds an AppendChild to
handle the case of a -1 index to InsertChildNode, removes the
InsertChildNode return value which is unused and cleans up various other
things.
Change-Id: I3a022e4dc2afffa6893ad11014034dd7ed301f13
Reviewed-on: https://pdfium-review.googlesource.com/26510
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlelement.cpp')
-rw-r--r-- | core/fxcrt/xml/cfx_xmlelement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/xml/cfx_xmlelement.cpp b/core/fxcrt/xml/cfx_xmlelement.cpp index 1317e9a72b..bba6fe6187 100644 --- a/core/fxcrt/xml/cfx_xmlelement.cpp +++ b/core/fxcrt/xml/cfx_xmlelement.cpp @@ -99,5 +99,5 @@ WideString CFX_XMLElement::GetTextData() const { void CFX_XMLElement::SetTextData(const WideString& wsText) { if (wsText.GetLength() < 1) return; - InsertChildNode(new CFX_XMLText(wsText)); + AppendChild(new CFX_XMLText(wsText)); } |