13
0

Rename debug -> dump

git-svn-id: svn://localhost/ardour2/branches/3.0@7738 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-09-03 15:24:21 +00:00
parent 1b28aa93f8
commit 8778724701
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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 + " ");
}
}