From 90fca083052880479ad90d870e556f0648e32106 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jan 2018 00:41:34 +0100 Subject: Replace insert(make_pair(...)) with emplace --- src/Parser.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/Parser.cpp') 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 types; types.insert(rdf_class); - subjects.insert(make_pair(subject, types)); + subjects.emplace(subject, types); } else { s->second.insert(rdf_class); } -- cgit v1.2.1