From 16c866f220847ae23012318d2c1a5023076ab5fa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 11 Sep 2006 19:57:59 +0000 Subject: Bug fixes. git-svn-id: http://svn.drobilla.net/lad/ingen@129 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/PatchController.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/progs/ingenuity/PatchController.cpp') diff --git a/src/progs/ingenuity/PatchController.cpp b/src/progs/ingenuity/PatchController.cpp index 8dee4cd2..f02aa773 100644 --- a/src/progs/ingenuity/PatchController.cpp +++ b/src/progs/ingenuity/PatchController.cpp @@ -152,13 +152,6 @@ PatchController::destroy() #endif -void -PatchController::destroy() -{ - delete this; -} - - void PatchController::metadata_update(const string& key, const string& value) { @@ -179,9 +172,9 @@ PatchController::set_path(const Path& new_path) for (NodeModelMap::const_iterator i = patch_model()->nodes().begin(); i != patch_model()->nodes().end(); ++i) { const NodeModel* const nm = (*i).second.get(); - assert(nm ); + assert(nm); CountedPtr nc = PtrCast(nm->controller()); - assert(nc ); + assert(nc); nc->set_path(new_path.base() + nc->node_model()->path().name()); } @@ -376,7 +369,7 @@ PatchController::add_node(CountedPtr node) CountedPtr nc = PtrCast(ControllerFactory::get_controller(node)); assert(nc); - assert(node->controller() == nc); + assert(node->controller() == nc); // lifeline reference if (m_patch_view) { double x, y; -- cgit v1.2.1