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/Store.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/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); } } |