diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 16:37:00 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:37:00 -0500 |
commit | 37729e5b314e39fb750a3fb46a005acdb15b4ac2 (patch) | |
tree | 5e8e316e9f186dc47bfef09c7546cc3a8f14f6bb /src/Resource.cpp | |
parent | 05bce078b6b5cfc64f10399da3a422d00fe6f790 (diff) | |
download | ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.gz ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.bz2 ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.zip |
Use auto for iterators
Diffstat (limited to 'src/Resource.cpp')
-rw-r--r-- | src/Resource.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Resource.cpp b/src/Resource.cpp index ae44723c..5d980f8e 100644 --- a/src/Resource.cpp +++ b/src/Resource.cpp @@ -56,9 +56,9 @@ Resource::set_property(const Raul::URI& uri, Resource::Graph ctx) { // Erase existing property in this context - for (Properties::iterator i = _properties.find(uri); + for (auto i = _properties.find(uri); (i != _properties.end()) && (i->first == uri);) { - Properties::iterator next = i; + auto next = i; ++next; if (i->second.context() == ctx) { const Atom value(i->second); @@ -94,7 +94,7 @@ Resource::remove_property(const Raul::URI& uri, const Atom& value) if (_uris.patch_wildcard == value) { _properties.erase(uri); } else { - for (Properties::iterator i = _properties.find(uri); + for (auto i = _properties.find(uri); i != _properties.end() && (i->first == uri); ++i) { if (i->second == value) { |