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/Configuration.cpp | |
parent | 05bce078b6b5cfc64f10399da3a422d00fe6f790 (diff) | |
download | ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.gz ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.bz2 ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.zip |
Use auto for iterators
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r-- | src/Configuration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 3e7b13ba..a65967b5 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -372,7 +372,7 @@ const Atom& Configuration::option(const std::string& long_name) const { static const Atom nil; - Options::const_iterator o = _options.find(long_name); + auto o = _options.find(long_name); if (o == _options.end()) { return nil; } else { @@ -383,7 +383,7 @@ Configuration::option(const std::string& long_name) const bool Configuration::set(const std::string& long_name, const Atom& value) { - Options::iterator o = _options.find(long_name); + auto o = _options.find(long_name); if (o != _options.end()) { o->second.value = value; return true; |