summaryrefslogtreecommitdiffstats
path: root/src/client/BlockModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 16:37:00 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:37:00 -0500
commit37729e5b314e39fb750a3fb46a005acdb15b4ac2 (patch)
tree5e8e316e9f186dc47bfef09c7546cc3a8f14f6bb /src/client/BlockModel.cpp
parent05bce078b6b5cfc64f10399da3a422d00fe6f790 (diff)
downloadingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.gz
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.bz2
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.zip
Use auto for iterators
Diffstat (limited to 'src/client/BlockModel.cpp')
-rw-r--r--src/client/BlockModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/BlockModel.cpp b/src/client/BlockModel.cpp
index 95819c1e..cf778408 100644
--- a/src/client/BlockModel.cpp
+++ b/src/client/BlockModel.cpp
@@ -67,7 +67,7 @@ BlockModel::~BlockModel()
void
BlockModel::remove_port(SPtr<PortModel> port)
{
- for (Ports::iterator i = _ports.begin(); i != _ports.end(); ++i) {
+ for (auto i = _ports.begin(); i != _ports.end(); ++i) {
if ((*i) == port) {
_ports.erase(i);
break;
@@ -79,7 +79,7 @@ BlockModel::remove_port(SPtr<PortModel> port)
void
BlockModel::remove_port(const Raul::Path& port_path)
{
- for (Ports::iterator i = _ports.begin(); i != _ports.end(); ++i) {
+ for (auto i = _ports.begin(); i != _ports.end(); ++i) {
if ((*i)->path() == port_path) {
_ports.erase(i);
break;