summaryrefslogtreecommitdiffstats
path: root/src/Forge.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-17 20:33:47 +0100
committerDavid Robillard <d@drobilla.net>2019-01-12 18:19:58 +0100
commit79fe75853ed8205674335f88e4e9c0e9dec137f9 (patch)
tree7e139dd4cff621b719ab751974883ed62cf68b6d /src/Forge.cpp
parentcc3d7ef610e5f93086eb46406cc600ee81a23e98 (diff)
downloadingen-79fe75853ed8205674335f88e4e9c0e9dec137f9.tar.gz
ingen-79fe75853ed8205674335f88e4e9c0e9dec137f9.tar.bz2
ingen-79fe75853ed8205674335f88e4e9c0e9dec137f9.zip
Use LV2 atom forge C++ bindings
Diffstat (limited to 'src/Forge.cpp')
-rw-r--r--src/Forge.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Forge.cpp b/src/Forge.cpp
index 9ac406fc..fbebbeb5 100644
--- a/src/Forge.cpp
+++ b/src/Forge.cpp
@@ -24,16 +24,16 @@
namespace ingen {
Forge::Forge(URIMap& map)
- : _map(map)
+ : lv2::atom::Forge(&map.urid_map_feature()->urid_map)
+ , _map(map)
{
- lv2_atom_forge_init(this, &map.urid_map_feature()->urid_map);
}
Atom
Forge::make_urid(const ingen::URI& u)
{
- const LV2_URID urid = _map.map_uri(u.string());
- return Atom(sizeof(int32_t), URID, &urid);
+ const LV2_URID urid = _map.map_uri(u);
+ return Atom(sizeof(urid), URID, &urid);
}
std::string