summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchPortModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PatchPortModule.cpp')
-rw-r--r--src/gui/PatchPortModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp
index 49dc4925..08889d8d 100644
--- a/src/gui/PatchPortModule.cpp
+++ b/src/gui/PatchPortModule.cpp
@@ -53,13 +53,13 @@ PatchPortModule::PatchPortModule(PatchCanvas& canvas,
sigc::mem_fun(this, &PatchPortModule::property_changed));
}
-boost::shared_ptr<PatchPortModule>
+PatchPortModule*
PatchPortModule::create(PatchCanvas& canvas,
SharedPtr<const PortModel> model,
bool human)
{
- boost::shared_ptr<PatchPortModule> ret(new PatchPortModule(canvas, model));
- boost::shared_ptr<Port> port(Port::create(*ret, model, human, true));
+ PatchPortModule* ret = new PatchPortModule(canvas, model);
+ Port* port = Port::create(*ret, model, human, true);
ret->set_port(port);
ret->set_menu(port->menu());