summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/PatchImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-15 02:48:48 +0000
committerDavid Robillard <d@drobilla.net>2008-08-15 02:48:48 +0000
commitb18b677b0b747ad4fbcd71102488b2cfab7cb3f9 (patch)
tree14d4ab8bdfb0918fd1c6fbdc87bc6e822ddeb197 /src/libs/engine/PatchImpl.cpp
parentbde12203a31e8db6b04793587bf1864383d07539 (diff)
downloadingen-b18b677b0b747ad4fbcd71102488b2cfab7cb3f9.tar.gz
ingen-b18b677b0b747ad4fbcd71102488b2cfab7cb3f9.tar.bz2
ingen-b18b677b0b747ad4fbcd71102488b2cfab7cb3f9.zip
Add strong Symbol class (just a restricted string, like path) and use it for ingen object symbols.
git-svn-id: http://svn.drobilla.net/lad/ingen@1387 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/PatchImpl.cpp')
-rw-r--r--src/libs/engine/PatchImpl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/engine/PatchImpl.cpp b/src/libs/engine/PatchImpl.cpp
index aedaacbf..97f9dde3 100644
--- a/src/libs/engine/PatchImpl.cpp
+++ b/src/libs/engine/PatchImpl.cpp
@@ -274,11 +274,11 @@ PatchImpl::add_node(List<NodeImpl*>::Node* ln)
* Preprocessing thread only.
*/
PatchImpl::Nodes::Node*
-PatchImpl::remove_node(const string& name)
+PatchImpl::remove_node(const string& symbol)
{
assert(ThreadManager::current_thread_id() == THREAD_PRE_PROCESS);
for (List<NodeImpl*>::iterator i = _nodes.begin(); i != _nodes.end(); ++i)
- if ((*i)->name() == name)
+ if ((*i)->symbol() == symbol)
return _nodes.erase(i);
return NULL;
@@ -360,14 +360,14 @@ PatchImpl::create_port(const string& name, DataType type, size_t buffer_size, bo
* Realtime safe. Preprocessing thread only.
*/
List<PortImpl*>::Node*
-PatchImpl::remove_port(const string& name)
+PatchImpl::remove_port(const string& symbol)
{
assert(ThreadManager::current_thread_id() == THREAD_PRE_PROCESS);
bool found = false;
List<PortImpl*>::Node* ret = NULL;
for (List<PortImpl*>::iterator i = _input_ports.begin(); i != _input_ports.end(); ++i) {
- if ((*i)->name() == name) {
+ if ((*i)->symbol() == symbol) {
ret = _input_ports.erase(i);
found = true;
}
@@ -375,7 +375,7 @@ PatchImpl::remove_port(const string& name)
if (!found)
for (List<PortImpl*>::iterator i = _output_ports.begin(); i != _output_ports.end(); ++i) {
- if ((*i)->name() == name) {
+ if ((*i)->symbol() == symbol) {
ret = _output_ports.erase(i);
found = true;
}