diff options
author | Marius Kintel <marius@kintel.net> | 2011-08-04 16:28:47 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-08-04 16:28:47 (GMT) |
commit | a586a9650386abeb6588ee8216e9fb9659a8c56d (patch) | |
tree | 375efcc3567c7ce3e04077fa444ef53d6569bdea | |
parent | 1d4b36a5c6c5fc1ec001c6c2711b834b56cf0128 (diff) |
Return a reference to the internal vector
-rw-r--r-- | src/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |