diff options
author | Robin Gareus <robin@gareus.org> | 2017-10-04 00:35:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-10-04 00:54:55 +0200 |
commit | e31f5d999837b0d0d63dc824c50e9da4acca7244 (patch) | |
tree | ef4712ccd25e8cc651ffabcd16e120571c21921d /libs/ardour/io_processor.cc | |
parent | 5dd9acf9ab39306277652c28fb5ac4af330e0af0 (diff) |
Clean up State API:
* Processor implement get_state(), classes derived from Processor
implement protected ::state() -- as documented in processor.h
* likewise for Route, Track: make ::state() a protected interface
* removal of "full_state", use explicit "template_save"
* use RAII/Unwind to skip saving automation-state
Diffstat (limited to 'libs/ardour/io_processor.cc')
-rw-r--r-- | libs/ardour/io_processor.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/io_processor.cc b/libs/ardour/io_processor.cc index 85ae6f90f3..a7e13fecb4 100644 --- a/libs/ardour/io_processor.cc +++ b/libs/ardour/io_processor.cc @@ -106,15 +106,15 @@ IOProcessor::set_output (boost::shared_ptr<IO> io) } XMLNode& -IOProcessor::state (bool full_state) +IOProcessor::state () { - XMLNode& node (Processor::state (full_state)); + XMLNode& node (Processor::state ()); node.set_property ("own-input", _own_input); if (_input) { if (_own_input) { - XMLNode& i (_input->state (full_state)); + XMLNode& i (_input->get_state ()); // i.name() = X_("output"); node.add_child_nocopy (i); } else { @@ -126,7 +126,7 @@ IOProcessor::state (bool full_state) if (_output) { if (_own_output) { - XMLNode& o (_output->state (full_state)); + XMLNode& o (_output->get_state ()); node.add_child_nocopy (o); } else { node.set_property ("output", _output->name ()); |