diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 17:12:50 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 20:59:06 +0100 |
commit | ecad88d2128f920f5e11cc3ff443d62b225c79d3 (patch) | |
tree | c497cebca3455f4201f38d017db0f1566f8004f7 /src/Resource.cpp | |
parent | 4ca52683ce01f833c552aa62dd80a6a3e48e785c (diff) | |
download | ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.gz ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.bz2 ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.zip |
Cleanup: Use "using" instead of "typedef" where appropriate
Diffstat (limited to 'src/Resource.cpp')
-rw-r--r-- | src/Resource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Resource.cpp b/src/Resource.cpp index 40f5fb4f..2601c2e3 100644 --- a/src/Resource.cpp +++ b/src/Resource.cpp @@ -29,7 +29,7 @@ bool Resource::add_property(const URI& uri, const Atom& value, Graph ctx) { // Ignore duplicate statements - typedef Properties::const_iterator iterator; + using iterator = Properties::const_iterator; const std::pair<iterator, iterator> range = _properties.equal_range(uri); for (iterator i = range.first; i != range.second && i != _properties.end(); ++i) { if (i->second == value && i->second.context() == ctx) { @@ -150,7 +150,7 @@ Resource::type(const URIs& uris, bool& port, bool& is_output) { - typedef Properties::const_iterator iterator; + using iterator = Properties::const_iterator; const std::pair<iterator, iterator> types_range = properties.equal_range(uris.rdf_type); graph = block = port = is_output = false; |