From 9cfc41a86b30d4b10cffd5404c91ce852ab6a1a8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Sep 2015 00:35:55 +0000 Subject: Remove last use of map::emplace. So annoying. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5718 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/DuplexPort.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server') diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp index f681e250..05bf1b5a 100644 --- a/src/server/DuplexPort.cpp +++ b/src/server/DuplexPort.cpp @@ -98,13 +98,13 @@ DuplexPort::inherit_neighbour(const PortImpl* port, if (_type == PortType::CONTROL || _type == PortType::CV) { if (port->minimum().get() < _min.get()) { _min = port->minimum(); - remove.emplace(uris.lv2_minimum, uris.patch_wildcard); - add.emplace(uris.lv2_minimum, port->minimum()); + remove.insert(std::make_pair(uris.lv2_minimum, uris.patch_wildcard)); + add.insert(std::make_pair(uris.lv2_minimum, port->minimum())); } if (port->maximum().get() > _max.get()) { _max = port->maximum(); - remove.emplace(uris.lv2_maximum, uris.patch_wildcard); - add.emplace(uris.lv2_maximum, port->maximum()); + remove.insert(std::make_pair(uris.lv2_maximum, uris.patch_wildcard)); + add.insert(std::make_pair(uris.lv2_maximum, port->maximum())); } } else if (_type == PortType::ATOM) { for (Resource::Properties::const_iterator i = port->properties().find( -- cgit v1.2.1