diff options
Diffstat (limited to 'project2/xml/rawView.cpp')
-rw-r--r-- | project2/xml/rawView.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/project2/xml/rawView.cpp b/project2/xml/rawView.cpp index 1cd1676..c583e00 100644 --- a/project2/xml/rawView.cpp +++ b/project2/xml/rawView.cpp @@ -5,7 +5,6 @@ #include "scriptLoader.h" #include "xmlDocumentCache.h" #include "xmlScriptParser.h" -#include <boost/foreach.hpp> #include <libxml++/nodes/textnode.h> class RawViewBase : public View { @@ -16,7 +15,7 @@ class RawViewBase : public View { void execute(const MultiRowSetPresenter * mp, ExecContext * ec) const { if (const Presenter * p = dynamic_cast<const Presenter *>(mp)) { - BOOST_FOREACH(const auto * node, getCopyRoot(ec)->get_children()) { + for (const auto * node : getCopyRoot(ec)->get_children()) { const xmlpp::Element * e = dynamic_cast<const xmlpp::Element *>(node); if (e) { copyNode(p, e); @@ -34,11 +33,11 @@ class RawViewBase : public View { p->pushSub(n->get_name()); p->setNamespace(n->get_namespace_prefix(), n->get_namespace_uri()); xmlpp::Element::AttributeList al = n->get_attributes(); - BOOST_FOREACH(const xmlpp::Attribute * a, al) { + for (const xmlpp::Attribute * a : al) { p->addAttribute(a->get_name(), a->get_value()); } const xmlpp::Node::NodeList ch = n->get_children(); - BOOST_FOREACH(const xmlpp::Node * c, ch) { + for (const xmlpp::Node * c : ch) { if (const xmlpp::Element * e = dynamic_cast<const xmlpp::Element *>(c)) { copyNode(p, e); } |