- shared_ptr<DKDMGroup> group (new DKDMGroup (node->string_attribute ("Name")));
- BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children()) {
- shared_ptr<DKDMBase> c = read (i);
- if (c) {
+ auto group = make_shared<DKDMGroup>(node->string_attribute("Name"));
+ for (auto i: node->node_children()) {
+ if (auto c = read(i)) {