From 92de17413f62e973b21447a6001371ca98e025e0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 6 Jun 2011 18:32:01 +0000 Subject: Use sane typedefs for collections. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3365 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeModule.cpp | 6 +++--- src/gui/PatchCanvas.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui') 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 port = PtrCast(*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(*p)->update_metadata(); } @@ -267,7 +267,7 @@ NodeModule::add_port(SharedPtr port, bool resize_to_fit) boost::shared_ptr NodeModule::port(boost::shared_ptr 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 = PtrCast(*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 port) } else { module = PtrCast(_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 pv = boost::dynamic_pointer_cast(*p); if (pv && pv->model() == port) -- cgit v1.2.1