diff options
-rw-r--r-- | libs/pbd/pbd/xml++.h | 2 | ||||
-rw-r--r-- | libs/pbd/xml++.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/pbd/xml++.h b/libs/pbd/pbd/xml++.h index 18bb3e013e..e0b6a885d2 100644 --- a/libs/pbd/pbd/xml++.h +++ b/libs/pbd/pbd/xml++.h @@ -110,7 +110,7 @@ public: /** Remove and delete all nodes with property prop matching val */ void remove_nodes_and_delete(const std::string& propname, const std::string& val); - void debug (std::ostream &, std::string p = ""); + void dump (std::ostream &, std::string p = "") const; private: std::string _name; diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc index d691b0bd82..dbed9d1917 100644 --- a/libs/pbd/xml++.cc +++ b/libs/pbd/xml++.cc @@ -592,15 +592,15 @@ static XMLSharedNodeList* find_impl(xmlXPathContext* ctxt, const string& xpath) /** Dump a node, its properties and children to a stream */ void -XMLNode::debug (ostream& s, string p) +XMLNode::dump (ostream& s, string p) const { s << p << _name << " "; - for (XMLPropertyList::iterator i = _proplist.begin(); i != _proplist.end(); ++i) { + for (XMLPropertyList::const_iterator i = _proplist.begin(); i != _proplist.end(); ++i) { s << (*i)->name() << "=" << (*i)->value() << " "; } s << "\n"; - for (XMLNodeList::iterator i = _children.begin(); i != _children.end(); ++i) { - (*i)->debug (s, p + " "); + for (XMLNodeList::const_iterator i = _children.begin(); i != _children.end(); ++i) { + (*i)->dump (s, p + " "); } } |