diff options
author | David Robillard <d@drobilla.net> | 2011-02-11 05:15:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-11 05:15:56 +0000 |
commit | 9749ab338c735f777be4fe6dc89082ea30044df1 (patch) | |
tree | 556314b7eb9d0472d06a78b003c56e820d6dd288 /src/plugin.c | |
parent | 28d3d1608126a676ea1d08249bac167bd5e88035 (diff) | |
download | lilv-9749ab338c735f777be4fe6dc89082ea30044df1.tar.gz lilv-9749ab338c735f777be4fe6dc89082ea30044df1.tar.bz2 lilv-9749ab338c735f777be4fe6dc89082ea30044df1.zip |
Reduce internal use of _by_qname variants (unnecessary overhead).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2918 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugin.c b/src/plugin.c index 0224b60..2bdae5c 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -381,7 +381,7 @@ slv2_plugin_verify(SLV2Plugin plugin) } slv2_values_free(results); - results = slv2_plugin_get_value_by_qname(plugin, "doap:name"); + results = slv2_plugin_get_value(plugin, plugin->world->doap_name_val); if (!results) { return false; } @@ -406,9 +406,10 @@ SLV2_API SLV2Value slv2_plugin_get_name(SLV2Plugin plugin) { - SLV2Values results = slv2_plugin_get_value_by_qname(plugin, "doap:name"); - SLV2Value ret = NULL; + SLV2Values results = slv2_plugin_get_value(plugin, + plugin->world->doap_name_val); + SLV2Value ret = NULL; if (results) { SLV2Value val = slv2_values_get_at(results, 0); if (slv2_value_is_string(val)) @@ -418,7 +419,7 @@ slv2_plugin_get_name(SLV2Plugin plugin) if (!ret) SLV2_WARNF("<%s> has no (mandatory) doap:name\n", - slv2_value_as_string(slv2_plugin_get_uri(plugin))); + slv2_value_as_string(slv2_plugin_get_uri(plugin))); return ret; } |