diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2014-03-05 17:48:39 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2014-03-05 17:48:39 +0100 |
commit | 7ddd03f9a00dcf505921821c55bebe6817aa3605 (patch) | |
tree | 79681bf18af9c09652ada7d42f25590106afff59 /poppler/StructTreeRoot.h | |
parent | 7d6a5b65f8497537248d405177ae141f3765a419 (diff) |
Rename getNumElements, getElement and appendElement as getNumChildren, getChild and appendChild
It's more consistent with other internal API and less confusing.
Diffstat (limited to 'poppler/StructTreeRoot.h')
-rw-r--r-- | poppler/StructTreeRoot.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poppler/StructTreeRoot.h b/poppler/StructTreeRoot.h index 9928e2f6..f42cdd53 100644 --- a/poppler/StructTreeRoot.h +++ b/poppler/StructTreeRoot.h @@ -33,11 +33,11 @@ public: PDFDoc *getDoc() { return doc; } Dict *getRoleMap() { return roleMap.isDict() ? roleMap.getDict() : NULL; } Dict *getClassMap() { return classMap.isDict() ? classMap.getDict() : NULL; } - unsigned getNumElements() const { return elements.size(); } - const StructElement *getElement(int i) const { return elements.at(i); } - StructElement *getElement(int i) { return elements.at(i); } + unsigned getNumChildren() const { return elements.size(); } + const StructElement *getChild(int i) const { return elements.at(i); } + StructElement *getChild(int i) { return elements.at(i); } - void appendElement(StructElement *element) { + void appendChild(StructElement *element) { if (element && element->isOk()) { elements.push_back(element); } |