13
0

Use XMLNode::get/set_property API in PBD::Stateful

This commit is contained in:
Tim Mayberry 2016-08-25 13:20:02 +10:00
parent 0aea5288cd
commit 799077025e

View File

@ -29,6 +29,7 @@
#include "pbd/debug.h"
#include "pbd/stateful.h"
#include "pbd/types_convert.h"
#include "pbd/property_list.h"
#include "pbd/properties.h"
#include "pbd/destructible.h"
@ -382,7 +383,6 @@ Stateful::clear_owned_changes ()
bool
Stateful::set_id (const XMLNode& node)
{
const XMLProperty* prop;
bool* regen = _regenerate_xml_or_string_ids.get();
if (regen && *regen) {
@ -390,8 +390,7 @@ Stateful::set_id (const XMLNode& node)
return true;
}
if ((prop = node.property ("id")) != 0) {
_id = prop->value ();
if (node.get_property ("id", _id)) {
return true;
}