summaryrefslogtreecommitdiffstats
path: root/src/server/PatchImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-06 14:48:26 +0000
committerDavid Robillard <d@drobilla.net>2011-10-06 14:48:26 +0000
commit5994178571afa3483d2a52ce78646d4161153ea5 (patch)
tree10c2943cc754807833aad6a1f9a19fb94c4d22f5 /src/server/PatchImpl.hpp
parent37e686ac346bdb77386dc3f7307ff956d40f2643 (diff)
downloadingen-5994178571afa3483d2a52ce78646d4161153ea5.tar.gz
ingen-5994178571afa3483d2a52ce78646d4161153ea5.tar.bz2
ingen-5994178571afa3483d2a52ce78646d4161153ea5.zip
Simpler providers/dependants implementation.
Raul::List is no longer necessary here since these lists are only accessed in the pre-processing thread. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3531 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PatchImpl.hpp')
-rw-r--r--src/server/PatchImpl.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/server/PatchImpl.hpp b/src/server/PatchImpl.hpp
index 5795a066..095a04b7 100644
--- a/src/server/PatchImpl.hpp
+++ b/src/server/PatchImpl.hpp
@@ -154,11 +154,12 @@ PatchImpl::compile_recursive(NodeImpl* n, CompiledPatch* output) const
n->traversed(true);
assert(output != NULL);
- for (Raul::List<NodeImpl*>::iterator i = n->providers()->begin(); i != n->providers()->end(); ++i)
- if ( ! (*i)->traversed() )
- compile_recursive((*i), output);
+ for (std::list<NodeImpl*>::iterator i = n->providers().begin();
+ i != n->providers().end(); ++i)
+ if (!(*i)->traversed())
+ compile_recursive(*i, output);
- output->push_back(CompiledNode(n, n->providers()->size(), n->dependants()));
+ output->push_back(CompiledNode(n, n->providers().size(), n->dependants()));
}
} // namespace Server