summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-09-29 13:51:22 +0000
committerDavid Robillard <d@drobilla.net>2015-09-29 13:51:22 +0000
commitdc6bde36430e1e2da21b3b81f691ea6f31d672be (patch)
treeb382db493db7a7b066fd4c5a603ba23f9de11057 /src
parent3368d57a40527bf1151b5a7d1edcba60d0560539 (diff)
downloadingen-dc6bde36430e1e2da21b3b81f691ea6f31d672be.tar.gz
ingen-dc6bde36430e1e2da21b3b81f691ea6f31d672be.tar.bz2
ingen-dc6bde36430e1e2da21b3b81f691ea6f31d672be.zip
Fix more URI conversion issues.
Fixes #1088. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5733 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/URIs.cpp1
-rw-r--r--src/client/ObjectModel.cpp4
-rw-r--r--src/client/PortModel.cpp10
-rw-r--r--src/gui/NodeModule.cpp2
-rw-r--r--src/server/PortImpl.cpp5
-rw-r--r--src/server/PortImpl.hpp2
6 files changed, 11 insertions, 13 deletions
diff --git a/src/URIs.cpp b/src/URIs.cpp
index e25257a2..57a17ce0 100644
--- a/src/URIs.cpp
+++ b/src/URIs.cpp
@@ -117,6 +117,7 @@ URIs::URIs(Forge& f, URIMap* map, LilvWorld* lworld)
, lv2_connectionOptional(forge, map, lworld, LV2_CORE__connectionOptional)
, lv2_default (forge, map, lworld, LV2_CORE__default)
, lv2_designation (forge, map, lworld, LV2_CORE__designation)
+ , lv2_enumeration (forge, map, lworld, LV2_CORE__enumeration)
, lv2_extensionData (forge, map, lworld, LV2_CORE__extensionData)
, lv2_index (forge, map, lworld, LV2_CORE__index)
, lv2_integer (forge, map, lworld, LV2_CORE__integer)
diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp
index 46282705..98f54cbe 100644
--- a/src/client/ObjectModel.cpp
+++ b/src/client/ObjectModel.cpp
@@ -41,9 +41,9 @@ ObjectModel::~ObjectModel()
}
bool
-ObjectModel::is_a(const Raul::URI& type) const
+ObjectModel::is_a(const URIs::Quark& type) const
{
- return has_property(_uris.rdf_type, _uris.forge.alloc_uri(type));
+ return has_property(_uris.rdf_type, type);
}
void
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp
index cd2ebb2a..9b534ae1 100644
--- a/src/client/PortModel.cpp
+++ b/src/client/PortModel.cpp
@@ -37,17 +37,15 @@ PortModel::on_property(const Raul::URI& uri, const Atom& value)
}
bool
-PortModel::supports(const Raul::URI& value_type) const
+PortModel::supports(const URIs::Quark& value_type) const
{
- return has_property(_uris.atom_supports,
- _uris.forge.alloc_uri(value_type));
+ return has_property(_uris.atom_supports, value_type);
}
bool
-PortModel::port_property(const Raul::URI& uri) const
+PortModel::port_property(const URIs::Quark& uri) const
{
- return has_property(_uris.lv2_portProperty,
- _uris.forge.alloc_uri(uri));
+ return has_property(_uris.lv2_portProperty, uri);
}
bool
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 86d0c8e6..ae9a997d 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -175,7 +175,7 @@ NodeModule::port_activity(uint32_t index, const Atom& value)
return;
}
- if (_block->get_port(index)->is_a(Raul::URI(LV2_ATOM__AtomPort))) {
+ if (_block->get_port(index)->is_a(uris.atom_AtomPort)) {
_plugin_ui->port_event(index,
lv2_atom_total_size(value.atom()),
uris.atom_eventTransfer,
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index f943fbb8..ea71568c 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -141,10 +141,9 @@ PortImpl::has_value() const
}
bool
-PortImpl::supports(const Raul::URI& value_type) const
+PortImpl::supports(const URIs::Quark& value_type) const
{
- return has_property(_bufs.uris().atom_supports,
- _bufs.forge().alloc_uri(value_type));
+ return has_property(_bufs.uris().atom_supports, value_type);
}
void
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index a59925ab..98a9d81e 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -174,7 +174,7 @@ public:
PortType type() const { return _type; }
LV2_URID buffer_type() const { return _buffer_type; }
- bool supports(const Raul::URI& value_type) const;
+ bool supports(const URIs::Quark& value_type) const;
size_t buffer_size() const { return _buffer_size; }