diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-13 14:36:52 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-13 14:36:52 +0000 |
commit | 9a3a077e4820efa035eca4aec7e93fbd1298d6cb (patch) | |
tree | 682e7861f7d7148e3b0d24646397d226e9262366 /core/fxcrt/xml/cxml_element.h | |
parent | aa123edaf307ac238f3aa79d951ea4b991c1f7aa (diff) | |
download | pdfium-9a3a077e4820efa035eca4aec7e93fbd1298d6cb.tar.xz |
Use size_t in CXML_Element and callers.
Change-Id: I9ebacd18252a837f1f5f13ccaec19b196bacc3ae
Reviewed-on: https://pdfium-review.googlesource.com/21072
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cxml_element.h')
-rw-r--r-- | core/fxcrt/xml/cxml_element.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/fxcrt/xml/cxml_element.h b/core/fxcrt/xml/cxml_element.h index 5c4d24d661..db9a214c17 100644 --- a/core/fxcrt/xml/cxml_element.h +++ b/core/fxcrt/xml/cxml_element.h @@ -30,8 +30,8 @@ class CXML_Element : public CXML_Object { 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(); } - void GetAttrByIndex(int index, + size_t CountAttrs() const { return m_AttrMap.GetSize(); } + void GetAttrByIndex(size_t index, ByteString* space, ByteString* name, WideString* value) const; @@ -43,13 +43,13 @@ class CXML_Element : public CXML_Object { m_Children.push_back(std::move(child)); } - uint32_t CountChildren() const { return m_Children.size(); } - uint32_t CountElements(const ByteStringView& space, - const ByteStringView& tag) const; - CXML_Object* GetChild(uint32_t index) const; + size_t CountChildren() const { return m_Children.size(); } + size_t CountElements(const ByteStringView& space, + const ByteStringView& tag) const; + CXML_Object* GetChild(size_t index) const; CXML_Element* GetElement(const ByteStringView& space, const ByteStringView& tag, - int nth) const; + size_t nth) const; void SetAttribute(const ByteString& space, const ByteString& name, |