summaryrefslogtreecommitdiffstats
path: root/src/client/BlockModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/BlockModel.cpp')
-rw-r--r--src/client/BlockModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/BlockModel.cpp b/src/client/BlockModel.cpp
index cacba04c..eb982f0d 100644
--- a/src/client/BlockModel.cpp
+++ b/src/client/BlockModel.cpp
@@ -143,9 +143,9 @@ BlockModel::add_port(SharedPtr<PortModel> pm)
SharedPtr<const PortModel>
BlockModel::get_port(const Raul::Symbol& symbol) const
{
- for (Ports::const_iterator i = _ports.begin(); i != _ports.end(); ++i)
- if ((*i)->symbol() == symbol)
- return (*i);
+ for (auto p : _ports)
+ if (p->symbol() == symbol)
+ return p;
return SharedPtr<PortModel>();
}