summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-07 02:44:16 +0000
committerDavid Robillard <d@drobilla.net>2011-06-07 02:44:16 +0000
commitd42b83ffe581651886ca0874b6b75dcbb6127aea (patch)
tree0fd2f18a1c7748fc2f2287cd19d6e546100b6ce3 /src/gui/Port.hpp
parent92de17413f62e973b21447a6001371ca98e025e0 (diff)
downloadingen-d42b83ffe581651886ca0874b6b75dcbb6127aea.tar.gz
ingen-d42b83ffe581651886ca0874b6b75dcbb6127aea.tar.bz2
ingen-d42b83ffe581651886ca0874b6b75dcbb6127aea.zip
Remove use of smart pointers in FlowCanvas entirely.
Since FlowCanvas's containers own their children, there is no real benefit to using smart pointers for objects, though there is overhead. There are no longer any add or remove methods for containers, simply create (new) and destroy (delete) objects and things should work as expected. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3366 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Port.hpp')
-rw-r--r--src/gui/Port.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/Port.hpp b/src/gui/Port.hpp
index 3d8fc763..17b1c37b 100644
--- a/src/gui/Port.hpp
+++ b/src/gui/Port.hpp
@@ -41,10 +41,10 @@ class Port : public FlowCanvas::Port
{
public:
static SharedPtr<Port> create(
- boost::shared_ptr<FlowCanvas::Module> module,
- SharedPtr<const PortModel> pm,
- bool human_name,
- bool flip=false);
+ FlowCanvas::Module& module,
+ SharedPtr<const PortModel> pm,
+ bool human_name,
+ bool flip = false);
~Port();
@@ -62,10 +62,10 @@ public:
ArtVpathDash* dash();
private:
- Port(boost::shared_ptr<FlowCanvas::Module> module,
- SharedPtr<const PortModel> pm,
- const std::string& name,
- bool flip = false);
+ Port(FlowCanvas::Module& module,
+ SharedPtr<const PortModel> pm,
+ const std::string& name,
+ bool flip=false);
void property_changed(const Raul::URI& key, const Raul::Atom& value);