Use XMLNode::get/set_property API in PBD::Stateful
This commit is contained in:
parent
0aea5288cd
commit
799077025e
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include "pbd/debug.h"
|
#include "pbd/debug.h"
|
||||||
#include "pbd/stateful.h"
|
#include "pbd/stateful.h"
|
||||||
|
#include "pbd/types_convert.h"
|
||||||
#include "pbd/property_list.h"
|
#include "pbd/property_list.h"
|
||||||
#include "pbd/properties.h"
|
#include "pbd/properties.h"
|
||||||
#include "pbd/destructible.h"
|
#include "pbd/destructible.h"
|
||||||
@ -382,7 +383,6 @@ Stateful::clear_owned_changes ()
|
|||||||
bool
|
bool
|
||||||
Stateful::set_id (const XMLNode& node)
|
Stateful::set_id (const XMLNode& node)
|
||||||
{
|
{
|
||||||
const XMLProperty* prop;
|
|
||||||
bool* regen = _regenerate_xml_or_string_ids.get();
|
bool* regen = _regenerate_xml_or_string_ids.get();
|
||||||
|
|
||||||
if (regen && *regen) {
|
if (regen && *regen) {
|
||||||
@ -390,8 +390,7 @@ Stateful::set_id (const XMLNode& node)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((prop = node.property ("id")) != 0) {
|
if (node.get_property ("id", _id)) {
|
||||||
_id = prop->value ();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user