summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-09-03 15:24:21 +0000
committerCarl Hetherington <carl@carlh.net>2010-09-03 15:24:21 +0000
commit8778724701ac14ebb02fe46dd3dc71eef38b636a (patch)
treec812d7cb193148d9425095217cde90ed18ac0de8
parent1b28aa93f8b077a2abfb1e517eaabaa2118454bd (diff)
Rename debug -> dump
git-svn-id: svn://localhost/ardour2/branches/3.0@7738 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/pbd/pbd/xml++.h2
-rw-r--r--libs/pbd/xml++.cc8
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 + " ");
}
}