summaryrefslogtreecommitdiff
path: root/poppler/StructTreeRoot.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2014-03-05 17:48:39 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2014-03-05 17:48:39 +0100
commit7ddd03f9a00dcf505921821c55bebe6817aa3605 (patch)
tree79681bf18af9c09652ada7d42f25590106afff59 /poppler/StructTreeRoot.h
parent7d6a5b65f8497537248d405177ae141f3765a419 (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.h8
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);
}