summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-08-04 16:28:47 (GMT)
committerMarius Kintel <marius@kintel.net>2011-08-04 16:28:47 (GMT)
commita586a9650386abeb6588ee8216e9fb9659a8c56d (patch)
tree375efcc3567c7ce3e04077fa444ef53d6569bdea
parent1d4b36a5c6c5fc1ec001c6c2711b834b56cf0128 (diff)
Return a reference to the internal vector
-rw-r--r--src/node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.h b/src/node.h
index 3abbdf0..a8072da 100644
--- a/src/node.h
+++ b/src/node.h
@@ -37,7 +37,7 @@ public:
virtual std::string name() const;
// FIXME: Make return value a reference
- const std::vector<AbstractNode*> getChildren() const {
+ const std::vector<AbstractNode*> &getChildren() const {
return this->children;
}
size_t index() const { return this->idx; }
contact: Jan Huwald // Impressum