summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/EventWriter.cpp9
-rw-r--r--src/server/LV2Plugin.cpp5
-rw-r--r--src/server/events/Get.cpp8
3 files changed, 11 insertions, 11 deletions
diff --git a/src/server/EventWriter.cpp b/src/server/EventWriter.cpp
index 6c04c73d..1f225d6e 100644
--- a/src/server/EventWriter.cpp
+++ b/src/server/EventWriter.cpp
@@ -126,12 +126,11 @@ EventWriter::set_property(const Raul::URI& uri,
const Raul::URI& predicate,
const Atom& value)
{
- Resource::Properties remove;
- remove.emplace(predicate,
- _engine.world()->uris().patch_wildcard.urid);
+ Resource::Properties remove{
+ { predicate, _engine.world()->uris().patch_wildcard.urid }};
+
+ Resource::Properties add{{ predicate, value }};
- Resource::Properties add;
- add.emplace(predicate, value);
_engine.enqueue_event(
new Events::Delta(_engine, _respondee, _request_id, now(),
Events::Delta::Type::SET, Resource::Graph::DEFAULT,
diff --git a/src/server/LV2Plugin.cpp b/src/server/LV2Plugin.cpp
index b1f7de73..5e0dc609 100644
--- a/src/server/LV2Plugin.cpp
+++ b/src/server/LV2Plugin.cpp
@@ -114,8 +114,9 @@ LV2Plugin::load_presets()
if (labels) {
const LilvNode* label = lilv_nodes_get_first(labels);
- _presets.emplace(Raul::URI(lilv_node_as_uri(preset)),
- lilv_node_as_string(label));
+ _presets.insert(
+ std::make_pair(Raul::URI(lilv_node_as_uri(preset)),
+ lilv_node_as_string(label)));
lilv_nodes_free(labels);
} else {
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp
index 185f275a..6d49657d 100644
--- a/src/server/events/Get.cpp
+++ b/src/server/events/Get.cpp
@@ -118,10 +118,10 @@ Get::Response::put_preset(const URIs& uris,
const Raul::URI& preset,
const std::string& label)
{
- Resource::Properties props;
- props.emplace(uris.rdf_type, uris.pset_Preset.urid);
- props.emplace(uris.rdfs_label, uris.forge.alloc(label));
- props.emplace(uris.lv2_appliesTo, uris.forge.make_urid(plugin));
+ Resource::Properties props{
+ { uris.rdf_type, uris.pset_Preset.urid },
+ { uris.rdfs_label, uris.forge.alloc(label) },
+ { uris.lv2_appliesTo, uris.forge.make_urid(plugin) }};
put(preset, props);
}