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/RenameWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/RenameWindow.cpp') diff --git a/src/gui/RenameWindow.cpp b/src/gui/RenameWindow.cpp index 7e5d8ed2..6b3a5f20 100644 --- a/src/gui/RenameWindow.cpp +++ b/src/gui/RenameWindow.cpp @@ -131,7 +131,9 @@ RenameWindow::ok_clicked() } if (!label.empty() && (!name_atom.is_valid() || label != name_atom.get_string())) { - _app->engine()->set_property(path, uris.lv2_name, Atom(label)); + _app->engine()->set_property(path, + uris.lv2_name, + _app->forge().alloc(label)); } hide(); -- cgit v1.2.1