diff options
author | Lei Zhang <thestig@chromium.org> | 2017-02-27 14:45:56 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-28 00:35:05 +0000 |
commit | a99de0ec3cda8ff5b0d6383a059dd39c8626e504 (patch) | |
tree | fea2f04aca7aca32fc85c952040cf8593f40a64e /core/fxcrt/fx_xml_composer.cpp | |
parent | ce32acfa15071e6cd5bcce73280857014e396dd2 (diff) | |
download | pdfium-a99de0ec3cda8ff5b0d6383a059dd39c8626e504.tar.xz |
Clean up CXML_Element.chromium/3026
- Set more members in the ctor
- Remove dead code
- Use more unique_ptrs
Change-Id: Idfe85d07c784a57862f9314bc85f407f817b8f2f
Reviewed-on: https://pdfium-review.googlesource.com/2844
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_xml_composer.cpp')
-rw-r--r-- | core/fxcrt/fx_xml_composer.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/fxcrt/fx_xml_composer.cpp b/core/fxcrt/fx_xml_composer.cpp index 91118a0a65..637d64cd82 100644 --- a/core/fxcrt/fx_xml_composer.cpp +++ b/core/fxcrt/fx_xml_composer.cpp @@ -23,14 +23,10 @@ void FX_XML_SplitQualifiedName(const CFX_ByteStringC& bsFullName, } } -void CXML_Element::SetTag(const CFX_ByteStringC& qSpace, - const CFX_ByteStringC& tagname) { - m_QSpaceName = qSpace; - m_TagName = tagname; -} void CXML_Element::SetTag(const CFX_ByteStringC& qTagName) { ASSERT(!qTagName.IsEmpty()); - CFX_ByteStringC bsSpace, bsName; + CFX_ByteStringC bsSpace; + CFX_ByteStringC bsName; FX_XML_SplitQualifiedName(qTagName, bsSpace, bsName); m_QSpaceName = bsSpace; m_TagName = bsName; |