summaryrefslogtreecommitdiffstats
path: root/src/gui/NewSubgraphWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
commit90fca083052880479ad90d870e556f0648e32106 (patch)
treed99d4aa6f7f519d59b0d262dbc1f5451afff07d1 /src/gui/NewSubgraphWindow.cpp
parente84092a7acee6c4d1493cbdd23ec5676b923f44d (diff)
downloadingen-90fca083052880479ad90d870e556f0648e32106.tar.gz
ingen-90fca083052880479ad90d870e556f0648e32106.tar.bz2
ingen-90fca083052880479ad90d870e556f0648e32106.zip
Replace insert(make_pair(...)) with emplace
Diffstat (limited to 'src/gui/NewSubgraphWindow.cpp')
-rw-r--r--src/gui/NewSubgraphWindow.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/NewSubgraphWindow.cpp b/src/gui/NewSubgraphWindow.cpp
index 03455adc..f9dc8fc4 100644
--- a/src/gui/NewSubgraphWindow.cpp
+++ b/src/gui/NewSubgraphWindow.cpp
@@ -94,16 +94,15 @@ NewSubgraphWindow::ok_clicked()
// Create graph
Properties props;
- props.insert(make_pair(_app->uris().rdf_type, Property(_app->uris().ingen_Graph)));
- props.insert(make_pair(_app->uris().ingen_polyphony, _app->forge().make(int32_t(poly))));
- props.insert(make_pair(_app->uris().ingen_enabled, _app->forge().make(bool(true))));
+ props.emplace(_app->uris().rdf_type, Property(_app->uris().ingen_Graph));
+ props.emplace(_app->uris().ingen_polyphony, _app->forge().make(int32_t(poly)));
+ props.emplace(_app->uris().ingen_enabled, _app->forge().make(bool(true)));
_app->interface()->put(
path_to_uri(path), props, Resource::Graph::INTERNAL);
// Set external (block perspective) properties
props = _initial_data;
- props.insert(make_pair(_app->uris().rdf_type,
- Property(_app->uris().ingen_Graph)));
+ props.emplace(_app->uris().rdf_type, Property(_app->uris().ingen_Graph));
_app->interface()->put(
path_to_uri(path), _initial_data, Resource::Graph::EXTERNAL);