summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Plugin.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-08-29 04:00:54 +0000
committerDavid Robillard <d@drobilla.net>2015-08-29 04:00:54 +0000
commit67dea1f9cf0dbce6be323949557eab3254dc3592 (patch)
treeaade64be34c81221c87fb6c46f3945d7d9262001 /src/server/LV2Plugin.cpp
parent177056dd73054d020ba4e6dae393850d779ac7e5 (diff)
downloadingen-67dea1f9cf0dbce6be323949557eab3254dc3592.tar.gz
ingen-67dea1f9cf0dbce6be323949557eab3254dc3592.tar.bz2
ingen-67dea1f9cf0dbce6be323949557eab3254dc3592.zip
Avoid map::emplace to accomodate old GCC.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5714 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Plugin.cpp')
-rw-r--r--src/server/LV2Plugin.cpp5
1 files changed, 3 insertions, 2 deletions
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 {