From a586a9650386abeb6588ee8216e9fb9659a8c56d Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 4 Aug 2011 18:28:47 +0200 Subject: Return a reference to the internal vector 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 getChildren() const { + const std::vector &getChildren() const { return this->children; } size_t index() const { return this->idx; } -- cgit v0.10.1