diff options
author | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-22 13:01:39 +0000 |
---|---|---|
committer | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-22 13:01:39 +0000 |
commit | 24e9a9396821b15e0d2efe848573912992639a3a (patch) | |
tree | fa7bc046cfd7773564b9c561ab7dae4ff58929a1 /libs/pbd3/pbd/xml++.h | |
parent | 5c819462b8f146b25a7dbe2c948a8407e7c5dbbb (diff) |
change foo(string bar) to foo(const char * bar) for foo()s only being called with C-string args.
git-svn-id: svn://localhost/trunk/ardour2@202 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd3/pbd/xml++.h')
-rw-r--r-- | libs/pbd3/pbd/xml++.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/pbd3/pbd/xml++.h b/libs/pbd3/pbd/xml++.h index 993cb22fdf..2e89a701de 100644 --- a/libs/pbd3/pbd/xml++.h +++ b/libs/pbd3/pbd/xml++.h @@ -92,15 +92,17 @@ public: XMLNode *add_content(const string & = string()); const XMLNodeList & children(const string & = string()) const; - XMLNode *add_child(const string &); + XMLNode *add_child(const char *); XMLNode *add_child_copy(const XMLNode&); void add_child_nocopy (XMLNode&); const XMLPropertyList & properties() const { return _proplist; }; - XMLProperty *property(const string &); - const XMLProperty *property(const string &n) const + XMLProperty *property(const char * ); + const XMLProperty *property(const char * n) const { return ((XMLNode *) this)->property(n); }; - XMLProperty *add_property(const string &, const string & = string()); + XMLProperty *add_property(const char *, const string &); + XMLProperty *add_property(const char *, const char * = ""); + void remove_property(const string &); /** Remove all nodes with the name passed to remove_nodes */ |