mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Use XMLNode::set_property API in PBD::Undo class
This commit is contained in:
parent
799077025e
commit
9587e11f97
1 changed files with 3 additions and 7 deletions
|
|
@ -135,13 +135,9 @@ UndoTransaction::redo ()
|
||||||
XMLNode &UndoTransaction::get_state()
|
XMLNode &UndoTransaction::get_state()
|
||||||
{
|
{
|
||||||
XMLNode *node = new XMLNode ("UndoTransaction");
|
XMLNode *node = new XMLNode ("UndoTransaction");
|
||||||
stringstream ss;
|
node->set_property("tv_sec", (int64_t)_timestamp.tv_sec);
|
||||||
ss << _timestamp.tv_sec;
|
node->set_property("tv_usec", (int64_t)_timestamp.tv_usec);
|
||||||
node->add_property("tv_sec", ss.str());
|
node->set_property("name", _name);
|
||||||
ss.str("");
|
|
||||||
ss << _timestamp.tv_usec;
|
|
||||||
node->add_property("tv_usec", ss.str());
|
|
||||||
node->add_property("name", _name);
|
|
||||||
|
|
||||||
list<Command*>::iterator it;
|
list<Command*>::iterator it;
|
||||||
for (it=actions.begin(); it!=actions.end(); it++)
|
for (it=actions.begin(); it!=actions.end(); it++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue