summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-13 14:35:33 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-13 14:35:33 +0000
commitaa123edaf307ac238f3aa79d951ea4b991c1f7aa (patch)
treef47c65a7d94bfc539fb3e72d3772fb3a9a51a50e /core/fxcrt
parent589e4659555c346148b8ef0837961ba8239811d9 (diff)
downloadpdfium-aa123edaf307ac238f3aa79d951ea4b991c1f7aa.tar.xz
Simplify CXML_Element::GetTagName().
It has an unused parameter. Change-Id: Iae92b8f84bc560055cb0cd730a0fe52c8bd9dd79 Reviewed-on: https://pdfium-review.googlesource.com/21071 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/xml/cxml_element.cpp10
-rw-r--r--core/fxcrt/xml/cxml_element.h2
2 files changed, 3 insertions, 9 deletions
diff --git a/core/fxcrt/xml/cxml_element.cpp b/core/fxcrt/xml/cxml_element.cpp
index ee51004b2c..9d3e22c8f9 100644
--- a/core/fxcrt/xml/cxml_element.cpp
+++ b/core/fxcrt/xml/cxml_element.cpp
@@ -33,14 +33,8 @@ const CXML_Element* CXML_Element::AsElement() const {
return this;
}
-ByteString CXML_Element::GetTagName(bool bQualified) const {
- if (!bQualified || m_QSpaceName.IsEmpty()) {
- return m_TagName;
- }
- ByteString bsTag = m_QSpaceName;
- bsTag += ":";
- bsTag += m_TagName;
- return bsTag;
+ByteString CXML_Element::GetTagName() const {
+ return m_TagName;
}
ByteString CXML_Element::GetNamespaceURI(const ByteString& qName) const {
diff --git a/core/fxcrt/xml/cxml_element.h b/core/fxcrt/xml/cxml_element.h
index 220eb7bcad..5c4d24d661 100644
--- a/core/fxcrt/xml/cxml_element.h
+++ b/core/fxcrt/xml/cxml_element.h
@@ -27,7 +27,7 @@ class CXML_Element : public CXML_Object {
CXML_Element* AsElement() override;
const CXML_Element* AsElement() const override;
- ByteString GetTagName(bool bQualified = false) const;
+ ByteString GetTagName() const;
ByteString GetNamespaceURI(const ByteString& qName) const;
const CXML_Element* GetParent() const { return m_pParent.Get(); }
uint32_t CountAttrs() const { return m_AttrMap.GetSize(); }