diff options
Diffstat (limited to 'project2/xml/rawView.cpp')
-rw-r--r-- | project2/xml/rawView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/xml/rawView.cpp b/project2/xml/rawView.cpp index e5f7c50..1b0a9f6 100644 --- a/project2/xml/rawView.cpp +++ b/project2/xml/rawView.cpp @@ -35,14 +35,14 @@ class RawViewBase : public View { p->setNamespace(n->get_namespace_prefix(), n->get_namespace_uri()); } p->pushSub(n->get_name(), n->get_namespace_prefix()); - xmlpp::Element::AttributeList al = n->get_attributes(); + auto al = n->get_attributes(); for (const xmlpp::Attribute * a : al) { if (!a->get_namespace_uri().empty()) { p->setNamespace(a->get_namespace_prefix(), a->get_namespace_uri()); } p->addAttribute(a->get_name(), a->get_namespace_prefix(), a->get_value()); } - const xmlpp::Node::NodeList ch = n->get_children(); + auto ch = n->get_children(); for (const xmlpp::Node * c : ch) { if (const xmlpp::Element * e = dynamic_cast<const xmlpp::Element *>(c)) { copyNode(p, e); |