From 67dea1f9cf0dbce6be323949557eab3254dc3592 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Aug 2015 04:00:54 +0000 Subject: Avoid map::emplace to accomodate old GCC. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5714 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeMenu.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui') 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); } } -- cgit v1.2.1