summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-06 18:05:47 +0000
committerDavid Robillard <d@drobilla.net>2011-06-06 18:05:47 +0000
commit67d2cb50843c73024758d6f73c35bae37070b67b (patch)
treeebeba1505b7a18238f49731ff164d920a6ceb497 /src/PatchageCanvas.cpp
parent654322e7d3dbeac6782ad2db1e9893389939b0ba (diff)
downloadpatchage-67d2cb50843c73024758d6f73c35bae37070b67b.tar.gz
patchage-67d2cb50843c73024758d6f73c35bae37070b67b.tar.bz2
patchage-67d2cb50843c73024758d6f73c35bae37070b67b.zip
Use a care pointer reference to containing module rather than boost::weak_ptr.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3364 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r--src/PatchageCanvas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index 273896b..a26e75d 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -69,7 +69,7 @@ PatchageCanvas::find_port(const PortID& id)
PortIndex::iterator i = _port_index.find(id);
if (i != _port_index.end()) {
- assert(i->second->module().lock());
+ assert(i->second->module());
return i->second;
}
@@ -107,7 +107,7 @@ PatchageCanvas::remove_port(const PortID& id)
_port_index.erase(id);
- SharedPtr<PatchageModule> module = PtrCast<PatchageModule>(port->module().lock());
+ PatchageModule* module = dynamic_cast<PatchageModule*>(port->module());
if (!module)
return port;