diff options
Diffstat (limited to 'src/Store.cpp')
-rw-r--r-- | src/Store.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Node>(o))); + emplace(o->path(), SPtr<Node>(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); } } |