fix const-correctness for current lilv

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@14072 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2013-02-21 14:53:49 +00:00
parent 2298c18dba
commit 4ce89b5178
2 changed files with 3 additions and 3 deletions

View file

@ -154,7 +154,7 @@ class LV2Plugin : public ARDOUR::Plugin
/** Find the LV2 input port with the given designation.
* If found, bufptrs[port_index] will be set to bufptr.
*/
LilvPort* designated_input (const char* uri, void** bufptrs[], void** bufptr);
const LilvPort* designated_input (const char* uri, void** bufptrs[], void** bufptr);
};

View file

@ -644,10 +644,10 @@ LV2Plugin::latency_compute_run ()
deactivate ();
}
LilvPort*
const LilvPort*
LV2Plugin::designated_input (const char* uri, void** bufptrs[], void** bufptr)
{
LilvPort* port = NULL;
const LilvPort* port = NULL;
#ifdef HAVE_NEW_LILV
LilvNode* designation = lilv_new_uri(_world.world, uri);
port = lilv_plugin_get_port_by_designation(