From 30e15b2f613d93eae8a4a122583dd0a16b1ab609 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Jun 2011 18:14:32 +0000 Subject: Remove use of boost::enable_shared_from_this. Instead, just store a pointer to the containing canvas in Items, since it should not be possible for an Item to outlive its containing Canvas anyway. Shrinks Item memory overhead a tad and gives a minor performance boost as an added bonus. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3354 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/SubpatchModule.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/SubpatchModule.cpp') diff --git a/src/gui/SubpatchModule.cpp b/src/gui/SubpatchModule.cpp index f26128af..8481d185 100644 --- a/src/gui/SubpatchModule.cpp +++ b/src/gui/SubpatchModule.cpp @@ -30,12 +30,11 @@ namespace Ingen { namespace GUI { -SubpatchModule::SubpatchModule(boost::shared_ptr canvas, - SharedPtr patch) +SubpatchModule::SubpatchModule(PatchCanvas& canvas, + SharedPtr patch) : NodeModule(canvas, patch) , _patch(patch) { - assert(canvas); assert(patch); } -- cgit v1.2.1