summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r--src/gui/NodeModule.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index e634793c..07d759c5 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -86,18 +86,18 @@ NodeModule::create_menu()
set_menu(_menu);
}
-boost::shared_ptr<NodeModule>
+NodeModule*
NodeModule::create(PatchCanvas& canvas,
SharedPtr<const NodeModel> node,
bool human)
{
- boost::shared_ptr<NodeModule> ret;
+ NodeModule* ret;
SharedPtr<const PatchModel> patch = PtrCast<const PatchModel>(node);
if (patch)
- ret = boost::shared_ptr<NodeModule>(new SubpatchModule(canvas, patch));
+ ret = new SubpatchModule(canvas, patch);
else
- ret = boost::shared_ptr<NodeModule>(new NodeModule(canvas, node));
+ ret = new NodeModule(canvas, node);
for (GraphObject::Properties::const_iterator m = node->properties().begin();
m != node->properties().end(); ++m)