aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui/EdgeView.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-03 18:14:32 +0000
committerDavid Robillard <d@drobilla.net>2011-06-03 18:14:32 +0000
commiteac59697740e943f2e2c7a2382bc3399e7aa7cfc (patch)
treec888aeef713e788d93a1c370aeda727378007def /src/gui/EdgeView.hpp
parent890a0f771f0f2b2996525d0f8ccf72d93c7bdc6b (diff)
downloadmachina-eac59697740e943f2e2c7a2382bc3399e7aa7cfc.tar.gz
machina-eac59697740e943f2e2c7a2382bc3399e7aa7cfc.tar.bz2
machina-eac59697740e943f2e2c7a2382bc3399e7aa7cfc.zip
Remove use of boost::enable_shared_from_this<Canvas>.
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/machina@3354 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/EdgeView.hpp')
-rw-r--r--src/gui/EdgeView.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/EdgeView.hpp b/src/gui/EdgeView.hpp
index fcdbfa4..30c5b75 100644
--- a/src/gui/EdgeView.hpp
+++ b/src/gui/EdgeView.hpp
@@ -30,7 +30,7 @@ class EdgeView
: public FlowCanvas::Connection
, public Machina::Client::ClientObject::View {
public:
- EdgeView(SharedPtr<FlowCanvas::Canvas> canvas,
+ EdgeView(FlowCanvas::Canvas& canvas,
SharedPtr<NodeView> src,
SharedPtr<NodeView> dst,
SharedPtr<Machina::Client::ClientObject> edge);