summaryrefslogtreecommitdiffstats
path: root/src/client/PortModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/PortModel.cpp')
-rw-r--r--src/client/PortModel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp
index e936a1e2..a4261202 100644
--- a/src/client/PortModel.cpp
+++ b/src/client/PortModel.cpp
@@ -54,10 +54,9 @@ bool
PortModel::is_uri() const
{
// FIXME: Resource::has_property doesn't work, URI != URID
- for (Resource::Properties::const_iterator i = properties().begin();
- i != properties().end(); ++i) {
- if (i->second.type() == _uris.atom_URID &&
- static_cast<LV2_URID>(i->second.get_int32()) == _uris.atom_URID) {
+ for (auto p : properties()) {
+ if (p.second.type() == _uris.atom_URID &&
+ static_cast<LV2_URID>(p.second.get_int32()) == _uris.atom_URID) {
return true;
}
}