diff options
Diffstat (limited to 'src/server/DuplexPort.cpp')
-rw-r--r-- | src/server/DuplexPort.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp index e81114ff..7e32e236 100644 --- a/src/server/DuplexPort.cpp +++ b/src/server/DuplexPort.cpp @@ -102,13 +102,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.insert(std::make_pair(uris.lv2_minimum, uris.patch_wildcard)); - add.insert(std::make_pair(uris.lv2_minimum, port->minimum())); + remove.emplace(uris.lv2_minimum, uris.patch_wildcard); + add.emplace(uris.lv2_minimum, port->minimum()); } if (port->maximum().get<float>() > _max.get<float>()) { _max = port->maximum(); - remove.insert(std::make_pair(uris.lv2_maximum, uris.patch_wildcard)); - add.insert(std::make_pair(uris.lv2_maximum, port->maximum())); + remove.emplace(uris.lv2_maximum, uris.patch_wildcard); + add.emplace(uris.lv2_maximum, port->maximum()); } } else if (_type == PortType::ATOM) { for (auto i = port->properties().find(uris.atom_supports); |