summaryrefslogtreecommitdiffstats
path: root/src/Parser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
commit90fca083052880479ad90d870e556f0648e32106 (patch)
treed99d4aa6f7f519d59b0d262dbc1f5451afff07d1 /src/Parser.cpp
parente84092a7acee6c4d1493cbdd23ec5676b923f44d (diff)
downloadingen-90fca083052880479ad90d870e556f0648e32106.tar.gz
ingen-90fca083052880479ad90d870e556f0648e32106.tar.bz2
ingen-90fca083052880479ad90d870e556f0648e32106.zip
Replace insert(make_pair(...)) with emplace
Diffstat (limited to 'src/Parser.cpp')
-rw-r--r--src/Parser.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index d3b139af..d761c84e 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -147,8 +147,8 @@ get_properties(Ingen::World* world,
Atom atomm;
atomm = world->forge().alloc(
atom->size, atom->type, LV2_ATOM_BODY_CONST(atom));
- props.insert(make_pair(Raul::URI(i.get_predicate().to_string()),
- Property(atomm, ctx)));
+ props.emplace(Raul::URI(i.get_predicate().to_string()),
+ Property(atomm, ctx));
}
}
@@ -331,8 +331,7 @@ parse_block(Ingen::World* world,
// Prototype is non-file URI, plugin
Properties props = get_properties(
world, model, subject, Resource::Graph::DEFAULT);
- props.insert(make_pair(uris.rdf_type,
- uris.forge.make_urid(uris.ingen_Block)));
+ props.emplace(uris.rdf_type, uris.forge.make_urid(uris.ingen_Block));
target->put(path_to_uri(path), props);
}
return path;
@@ -592,7 +591,7 @@ parse(Ingen::World* world,
if (s == subjects.end()) {
std::set<Sord::Node> types;
types.insert(rdf_class);
- subjects.insert(make_pair(subject, types));
+ subjects.emplace(subject, types);
} else {
s->second.insert(rdf_class);
}