summaryrefslogtreecommitdiff
path: root/src/xml.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-31 00:07:08 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-31 00:07:08 +0100
commitd8c9cbec9d87f28da338350880b7618b94f4da81 (patch)
treec1e853ab494ac3731982c075046215f670153232 /src/xml.h
parent9a9d4e014c16be88d72914a9480343445bc785a5 (diff)
Bits.
Diffstat (limited to 'src/xml.h')
-rw-r--r--src/xml.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xml.h b/src/xml.h
index ff4b1e67..3ff3e360 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -48,8 +48,9 @@ protected:
}
template <class T>
- std::list<boost::shared_ptr<T> > sub_nodes (std::string name) {
- std::list<xmlpp::Node*> n = xml_nodes (name);
+ std::list<boost::shared_ptr<T> > sub_nodes (std::string name, std::string sub) {
+ XMLNode p (xml_node (name));
+ std::list<xmlpp::Node*> n = p.xml_nodes (sub);
std::list<boost::shared_ptr<T> > r;
for (typename std::list<xmlpp::Node*>::iterator i = n.begin(); i != n.end(); ++i) {
r.push_back (boost::shared_ptr<T> (new T (*i)));