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/shared/Builder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/shared/Builder.cpp') diff --git a/src/shared/Builder.cpp b/src/shared/Builder.cpp index fff40f3f..3672e388 100644 --- a/src/shared/Builder.cpp +++ b/src/shared/Builder.cpp @@ -47,8 +47,9 @@ Builder::build(SharedPtr object) if (patch) { if (!object->path().is_root()) { Resource::Properties props; - props.insert(make_pair(uris.rdf_type, uris.ingen_Patch)); - props.insert(make_pair(uris.ingen_polyphony, Atom(int32_t(patch->internal_poly())))); + props.insert(make_pair(uris.rdf_type, uris.ingen_Patch)); + props.insert(make_pair(uris.ingen_polyphony, + _uris->forge.make(int32_t(patch->internal_poly())))); _interface.put(object->path(), props); } -- cgit v1.2.1