diff options
Diffstat (limited to 'project2/xml/mutators/rename.cpp')
-rw-r--r-- | project2/xml/mutators/rename.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/project2/xml/mutators/rename.cpp b/project2/xml/mutators/rename.cpp index 544afd9..ec347d8 100644 --- a/project2/xml/mutators/rename.cpp +++ b/project2/xml/mutators/rename.cpp @@ -1,6 +1,5 @@ #include <pch.hpp> #include "../xmlPresenter.h" -#include <boost/foreach.hpp> #include <libxml++/document.h> class Rename : public XmlDocMutator { @@ -13,7 +12,7 @@ class Rename : public XmlDocMutator { } void mutateElement(xmlpp::Element * root) const { - BOOST_FOREACH(xmlpp::Node * e, root->find(xpath(NULL))) { + for (xmlpp::Node * e : root->find(xpath(NULL))) { e->set_name(newname(NULL)); } } |