diff options
author | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
commit | 90fca083052880479ad90d870e556f0648e32106 (patch) | |
tree | d99d4aa6f7f519d59b0d262dbc1f5451afff07d1 /src/Resource.cpp | |
parent | e84092a7acee6c4d1493cbdd23ec5676b923f44d (diff) | |
download | ingen-90fca083052880479ad90d870e556f0648e32106.tar.gz ingen-90fca083052880479ad90d870e556f0648e32106.tar.bz2 ingen-90fca083052880479ad90d870e556f0648e32106.zip |
Replace insert(make_pair(...)) with emplace
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 5d980f8e..05c4fb4e 100644 --- a/src/Resource.cpp +++ b/src/Resource.cpp @@ -40,7 +40,7 @@ Resource::add_property(const Raul::URI& uri, if (uri != _uris.ingen_activity) { // Insert new property - const Atom& v = _properties.insert(make_pair(uri, Property(value, ctx)))->second; + const Atom& v = _properties.emplace(uri, Property(value, ctx))->second; on_property(uri, v); } else { // Announce ephemeral activity, but do not store @@ -70,7 +70,7 @@ Resource::set_property(const Raul::URI& uri, if (uri != _uris.ingen_activity) { // Insert new property - const Atom& v = _properties.insert(make_pair(uri, Property(value, ctx)))->second; + const Atom& v = _properties.emplace(uri, Property(value, ctx))->second; on_property(uri, v); return v; } else { @@ -228,7 +228,7 @@ Resource::properties(Resource::Graph ctx) const Properties props; for (const auto& p : _properties) { if (p.second.context() == ctx) { - props.insert(make_pair(p.first, p.second)); + props.emplace(p.first, p.second); } } |