diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-15 18:56:11 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-15 18:56:11 +0000 |
commit | 8713667ec1a6cc9ba56c07f763e5a422cc47fbef (patch) | |
tree | 56727634d8a1567679a7ba76cff93bf06e7c271f /libs/ardour/port_insert.cc | |
parent | 79f91c7a205d981d2b8cc15e32a6da02d8423065 (diff) |
rework Stateful::set_state() patch to avoid default version argument
git-svn-id: svn://localhost/ardour2/branches/3.0@5787 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port_insert.cc')
-rw-r--r-- | libs/ardour/port_insert.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/port_insert.cc b/libs/ardour/port_insert.cc index 04a145aa52..3b02bf41da 100644 --- a/libs/ardour/port_insert.cc +++ b/libs/ardour/port_insert.cc @@ -48,12 +48,12 @@ PortInsert::PortInsert (Session& s, boost::shared_ptr<MuteMaster> mm) ProcessorCreated (this); /* EMIT SIGNAL */ } -PortInsert::PortInsert (Session& s, boost::shared_ptr<MuteMaster> mm, const XMLNode& node, int version) +PortInsert::PortInsert (Session& s, boost::shared_ptr<MuteMaster> mm, const XMLNode& node) : IOProcessor (s, true, true, "unnamed port insert") , _out (new Delivery (s, _output, mm, _name, Delivery::Insert)) { - if (set_state (node, version)) { + if (set_state (node, Stateful::loading_state_version)) { throw failed_constructor(); } @@ -138,7 +138,7 @@ PortInsert::set_state (const XMLNode& node, int version) } } - Processor::set_state (*insert_node); + Processor::set_state (*insert_node, version); return 0; } |