diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 00:04:37 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 01:12:58 -0400 |
commit | 1bf1ab5c898f6e6d6e878a716540d0049f5cb206 (patch) | |
tree | c57017ccfd1598e872ede9459a70b396501d7b76 /include | |
parent | 6bce9e50915d730caa3bd2b60c513fe9915e4b83 (diff) | |
download | ingen-1bf1ab5c898f6e6d6e878a716540d0049f5cb206.tar.gz ingen-1bf1ab5c898f6e6d6e878a716540d0049f5cb206.tar.bz2 ingen-1bf1ab5c898f6e6d6e878a716540d0049f5cb206.zip |
Use auto when declaring iterators
Diffstat (limited to 'include')
-rw-r--r-- | include/ingen/Properties.hpp | 2 | ||||
-rw-r--r-- | include/ingen/Store.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/ingen/Properties.hpp b/include/ingen/Properties.hpp index 300d1a78..95b7eaf9 100644 --- a/include/ingen/Properties.hpp +++ b/include/ingen/Properties.hpp @@ -82,7 +82,7 @@ public: } bool contains(const URI& key, const Atom& value) { - for (const_iterator i = find(key); i != end() && i->first == key; ++i) { + for (auto i = find(key); i != end() && i->first == key; ++i) { if (i->second == value) { return true; } diff --git a/include/ingen/Store.hpp b/include/ingen/Store.hpp index 67ea16fa..1eb7a41a 100644 --- a/include/ingen/Store.hpp +++ b/include/ingen/Store.hpp @@ -44,7 +44,7 @@ public: void add(Node* o); Node* get(const raul::Path& path) { - const iterator i = find(path); + const auto i = find(path); return (i == end()) ? nullptr : i->second.get(); } |