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/AtomReader.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/AtomReader.cpp')
-rw-r--r-- | src/AtomReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AtomReader.cpp b/src/AtomReader.cpp index f3263f65..5aa39657 100644 --- a/src/AtomReader.cpp +++ b/src/AtomReader.cpp @@ -59,12 +59,12 @@ AtomReader::get_props(const LV2_Atom_Object* obj, { if (obj->body.otype) { const Atom type(sizeof(int32_t), _uris.atom_URID, &obj->body.otype); - props.insert(std::make_pair(_uris.rdf_type, type)); + props.emplace(_uris.rdf_type, type); } LV2_ATOM_OBJECT_FOREACH(obj, p) { Atom val; get_atom(&p->value, val); - props.insert(std::make_pair(Raul::URI(_map.unmap_uri(p->key)), val)); + props.emplace(Raul::URI(_map.unmap_uri(p->key)), val); } } |