From 81e9fb3245bd461ebfee4cfa16d1792e48533f9e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 12 Mar 2012 06:59:48 +0000 Subject: Centralise atom creation in forge object. Aside from being more greppable and making realtime violations more obvious, this is a step towards using LV2 atoms internally (which needs a factory since the type numbers are dynamic). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4054 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/LoadPatchWindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/LoadPatchWindow.cpp') diff --git a/src/gui/LoadPatchWindow.cpp b/src/gui/LoadPatchWindow.cpp index 7a45f9bb..66c64495 100644 --- a/src/gui/LoadPatchWindow.cpp +++ b/src/gui/LoadPatchWindow.cpp @@ -149,9 +149,9 @@ LoadPatchWindow::ok_clicked() const URIs& uris = _app->uris(); if (_poly_voices_radio->get_active()) - _initial_data.insert(make_pair( - uris.ingen_polyphony, - _poly_spinbutton->get_value_as_int())); + _initial_data.insert( + make_pair(uris.ingen_polyphony, + _app->forge().make(_poly_spinbutton->get_value_as_int()))); if (get_uri() == "") return; @@ -173,9 +173,9 @@ LoadPatchWindow::ok_clicked() for (std::list::iterator i = uri_list.begin(); i != uri_list.end(); ++i) { // Cascade Atom& x = _initial_data.find(uris.ingen_canvasX)->second; - x = Atom(x.get_float() + 20.0f); + x = _app->forge().make(x.get_float() + 20.0f); Atom& y = _initial_data.find(uris.ingen_canvasY)->second; - y = Atom(y.get_float() + 20.0f); + y = _app->forge().make(y.get_float() + 20.0f); Raul::Symbol symbol(symbol_from_filename(*i)); if (uri_list.size() == 1 && _symbol_entry->get_text() != "") -- cgit v1.2.1