summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/DuplexPort.cpp8
1 files changed, 4 insertions, 4 deletions
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<float>() < _min.get<float>()) {
_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<float>() > _max.get<float>()) {
_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(