mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)
This commit is contained in:
parent
9b3b1d945f
commit
17ace643e4
94 changed files with 294 additions and 254 deletions
|
|
@ -94,7 +94,7 @@ GUIObjectState::get_string (const string& id, const string& prop_name, bool* emp
|
|||
return string ();
|
||||
}
|
||||
|
||||
const XMLProperty* p (i->second->property (prop_name));
|
||||
XMLProperty const * p (i->second->property (prop_name));
|
||||
if (!p) {
|
||||
if (empty) {
|
||||
*empty = true;
|
||||
|
|
@ -130,7 +130,7 @@ GUIObjectState::set_state (const XMLNode& node)
|
|||
if ((*i)->name() != X_("Object")) {
|
||||
continue;
|
||||
}
|
||||
const XMLProperty* prop = (*i)->property (X_("id"));
|
||||
XMLProperty const * prop = (*i)->property (X_("id"));
|
||||
if (!prop) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue