diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-04 23:09:37 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-04 23:09:45 -0400 |
commit | 17ace643e4edbec1e5bd7b446d039f8c94beef75 (patch) | |
tree | dfd1d426f61cdb8bb5dd7d0dc0114c8960b761e8 /libs/ardour/export_preset.cc | |
parent | 9b3b1d945f72324a5ee38b7053a54e9d257c41db (diff) |
OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)
Diffstat (limited to 'libs/ardour/export_preset.cc')
-rw-r--r-- | libs/ardour/export_preset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/export_preset.cc b/libs/ardour/export_preset.cc index c6bae093c4..dec4c4b79a 100644 --- a/libs/ardour/export_preset.cc +++ b/libs/ardour/export_preset.cc @@ -30,7 +30,7 @@ ExportPreset::ExportPreset (string filename, Session & s) : { XMLNode * root; if ((root = global.root())) { - XMLProperty * prop; + XMLProperty const * prop; if ((prop = root->property ("id"))) { set_id (prop->value()); } @@ -124,7 +124,7 @@ ExportPreset::get_instant_xml () const if ((instant_xml = session.instant_xml ("ExportPresets"))) { XMLNodeList children = instant_xml->children ("ExportPreset"); for (XMLNodeList::iterator it = children.begin(); it != children.end(); ++it) { - XMLProperty * prop; + XMLProperty const * prop; if ((prop = (*it)->property ("id")) && _id == PBD::UUID(prop->value())) { return *it; } |