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/Store.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Store.cpp') diff --git a/src/Store.cpp b/src/Store.cpp index 13e38d37..327ce416 100644 --- a/src/Store.cpp +++ b/src/Store.cpp @@ -28,7 +28,7 @@ Store::add(Node* o) return; } - insert(make_pair(o->path(), SPtr(o))); + emplace(o->path(), SPtr(o)); for (uint32_t i = 0; i < o->num_ports(); ++i) { add(o->port(i)); @@ -110,7 +110,7 @@ Store::rename(const iterator top, const Raul::Path& new_path) i->second->set_path(path); assert(find(path) == end()); // Shouldn't be dropping objects! - insert(make_pair(path, i->second)); + emplace(path, i->second); } } -- cgit v1.2.1