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/NodeModule.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/NodeModule.hpp') diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp index 78a301c5..7a62b87f 100644 --- a/src/gui/NodeModule.hpp +++ b/src/gui/NodeModule.hpp @@ -48,10 +48,10 @@ class NodeMenu; class NodeModule : public FlowCanvas::Module { public: - static boost::shared_ptr create ( - boost::shared_ptr canvas, - SharedPtr node, - bool human_names); + static boost::shared_ptr create( + PatchCanvas& canvas, + SharedPtr node, + bool human_names); virtual ~NodeModule(); @@ -65,7 +65,7 @@ public: SharedPtr node() const { return _node; } protected: - NodeModule(boost::shared_ptr canvas, SharedPtr node); + NodeModule(PatchCanvas& canvas, SharedPtr node); void on_double_click(GdkEventButton* ev); -- cgit v1.2.1