From 15611d1f9d7a6aba34b70ccaf63f564d565b55f3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Jun 2011 01:45:19 +0000 Subject: Avoid resizing entirely when adding a port and new size/etc is simple to compute. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3382 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Port.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/Port.cpp') diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 72c37b12..bc623950 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -40,7 +40,7 @@ namespace GUI { ArtVpathDash* Port::_dash; -SharedPtr +Port* Port::create(FlowCanvas::Module& module, SharedPtr pm, bool human_name, @@ -57,7 +57,7 @@ Port::create(FlowCanvas::Module& module, label = parent->plugin_model()->port_human_name(pm->index()); } } - return SharedPtr(new Port(module, pm, label, flip)); + return new Port(module, pm, label, flip); } /** @a flip Make an input port appear as an output port, and vice versa. -- cgit v1.2.1