mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Make DnD copy processors using their XML representations. Remove unused
copy constructors from the Processor hierarchy, and declare them private to explicitly disallow copy construction. git-svn-id: svn://localhost/ardour2/branches/3.0@4556 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b35f308894
commit
9a3734a6bd
15 changed files with 41 additions and 221 deletions
|
|
@ -69,27 +69,6 @@ Processor::Processor(Session& session, const string& name, Placement p)
|
|||
{
|
||||
}
|
||||
|
||||
boost::shared_ptr<Processor>
|
||||
Processor::clone (boost::shared_ptr<const Processor> other)
|
||||
{
|
||||
boost::shared_ptr<const Send> send;
|
||||
boost::shared_ptr<const PortInsert> port_insert;
|
||||
boost::shared_ptr<const PluginInsert> plugin_insert;
|
||||
|
||||
if ((send = boost::dynamic_pointer_cast<const Send>(other)) != 0) {
|
||||
return boost::shared_ptr<Processor> (new Send (*send));
|
||||
} else if ((port_insert = boost::dynamic_pointer_cast<const PortInsert>(other)) != 0) {
|
||||
return boost::shared_ptr<Processor> (new PortInsert (*port_insert));
|
||||
} else if ((plugin_insert = boost::dynamic_pointer_cast<const PluginInsert>(other)) != 0) {
|
||||
return boost::shared_ptr<Processor> (new PluginInsert (*plugin_insert));
|
||||
} else {
|
||||
fatal << _("programming error: unknown Processor type in Processor::Clone!\n")
|
||||
<< endmsg;
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
return boost::shared_ptr<Processor>();
|
||||
}
|
||||
|
||||
void
|
||||
Processor::set_sort_key (uint32_t key)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue