summaryrefslogtreecommitdiffstats
path: root/src/gui
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/gui
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/gui')
-rw-r--r--src/gui/NodeMenu.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp
index 0acce065..7d1d3274 100644
--- a/src/gui/NodeMenu.cpp
+++ b/src/gui/NodeMenu.cpp
@@ -218,13 +218,13 @@ NodeMenu::on_save_preset_activated()
const std::string real_path = Glib::build_filename(dirname, bundle, file);
const std::string real_uri = Glib::filename_to_uri(real_path);
- Resource::Properties props;
- props.emplace(_app->uris().rdf_type,
- _app->uris().pset_Preset);
- props.emplace(_app->uris().rdfs_label,
- _app->forge().alloc(basename));
- props.emplace(_app->uris().lv2_prototype,
- _app->forge().alloc_uri(block()->uri()));
+ Resource::Properties props{
+ { _app->uris().rdf_type,
+ _app->uris().pset_Preset },
+ { _app->uris().rdfs_label,
+ _app->forge().alloc(basename) },
+ { _app->uris().lv2_prototype,
+ _app->forge().alloc_uri(block()->uri()) }};
_app->interface()->put(Raul::URI(real_uri), props);
}
}