a better fix fpr that wierd XMLProperty botch
git-svn-id: svn://localhost/ardour2/branches/3.0@9128 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ac38847d86
commit
58ce6c2bb7
@ -53,7 +53,7 @@ class ExportPreset {
|
||||
|
||||
private:
|
||||
|
||||
void set_id (std::string id);
|
||||
void set_id (std::string const & id);
|
||||
|
||||
XMLNode * get_instant_xml () const;
|
||||
void save_instant_xml () const;
|
||||
|
@ -66,7 +66,7 @@ ExportPreset::set_name (string const & name)
|
||||
}
|
||||
|
||||
void
|
||||
ExportPreset::set_id (string id)
|
||||
ExportPreset::set_id (string const & id)
|
||||
{
|
||||
_id = id;
|
||||
|
||||
|
@ -377,8 +377,11 @@ XMLProperty*
|
||||
XMLNode::add_property(const char* n, const string& v)
|
||||
{
|
||||
string ns(n);
|
||||
if (_propmap.find(ns) != _propmap.end()) {
|
||||
remove_property(ns);
|
||||
map<string,XMLProperty*>::iterator iter;
|
||||
|
||||
if ((iter = _propmap.find(ns)) != _propmap.end()) {
|
||||
iter->second->set_value (v);
|
||||
return iter->second;
|
||||
}
|
||||
|
||||
XMLProperty* tmp = new XMLProperty(ns, v);
|
||||
|
Loading…
Reference in New Issue
Block a user