diff options
author | David Robillard <d@drobilla.net> | 2011-06-06 18:32:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-06-06 18:32:01 +0000 |
commit | 92de17413f62e973b21447a6001371ca98e025e0 (patch) | |
tree | f6f0a4c237cb653f774d0b2713219694ad7c39b4 /src | |
parent | 7787aabd530b80d6b02e0a23c719988b89090dfe (diff) | |
download | ingen-92de17413f62e973b21447a6001371ca98e025e0.tar.gz ingen-92de17413f62e973b21447a6001371ca98e025e0.tar.bz2 ingen-92de17413f62e973b21447a6001371ca98e025e0.zip |
Use sane typedefs for collections.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3365 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/NodeModule.cpp | 6 | ||||
-rw-r--r-- | src/gui/PatchCanvas.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 2c14557a..20f6beb3 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -133,7 +133,7 @@ NodeModule::show_human_names(bool b) set_name(node()->symbol().c_str()); } - for (PortVector::const_iterator i = ports().begin(); i != ports().end(); ++i) { + for (Ports::const_iterator i = ports().begin(); i != ports().end(); ++i) { SharedPtr<Ingen::GUI::Port> port = PtrCast<Ingen::GUI::Port>(*i); Glib::ustring label(port->model()->symbol().c_str()); if (b) { @@ -177,7 +177,7 @@ NodeModule::value_changed(uint32_t index, const Atom& value) void NodeModule::plugin_changed() { - for (PortVector::iterator p = ports().begin(); p != ports().end(); ++p) + for (Ports::iterator p = ports().begin(); p != ports().end(); ++p) PtrCast<Ingen::GUI::Port>(*p)->update_metadata(); } @@ -267,7 +267,7 @@ NodeModule::add_port(SharedPtr<const PortModel> port, bool resize_to_fit) boost::shared_ptr<Port> NodeModule::port(boost::shared_ptr<const PortModel> model) { - for (PortVector::const_iterator p = ports().begin(); p != ports().end(); ++p) { + for (Ports::const_iterator p = ports().begin(); p != ports().end(); ++p) { SharedPtr<Port> port = PtrCast<Port>(*p); if (port->model() == model) return port; diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 733e7703..68a4cbab 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -49,7 +49,7 @@ #define LOG(s) s << "[PatchCanvas] " #define FOREACH_ITEM(iter, coll) \ - for (ItemList::iterator (iter) = coll.begin(); \ + for (Items::iterator (iter) = coll.begin(); \ (iter) != coll.end(); ++(iter)) using Ingen::Client::ClientStore; @@ -449,7 +449,7 @@ PatchCanvas::get_port_view(SharedPtr<PortModel> port) } else { module = PtrCast<NodeModule>(_views[port->parent()]); if (module) { - for (PortVector::const_iterator p = module->ports().begin(); + for (Module::Ports::const_iterator p = module->ports().begin(); p != module->ports().end(); ++p) { boost::shared_ptr<GUI::Port> pv = boost::dynamic_pointer_cast<GUI::Port>(*p); if (pv && pv->model() == port) |