From 8bc9aca63644d63de3ccccbb4752e79d3d3c7854 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Apr 2011 02:03:23 +0000 Subject: Don't hide pointers behind typedefs. Use const appropriately in API (makes it clear from the type whether objects should be freed or not). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3222 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/LV2Plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/LV2Plugin.cpp') diff --git a/src/server/LV2Plugin.cpp b/src/server/LV2Plugin.cpp index 75476fa4..b9768f23 100644 --- a/src/server/LV2Plugin.cpp +++ b/src/server/LV2Plugin.cpp @@ -86,7 +86,7 @@ LV2Plugin::instantiate(BufferFactory& bufs, } void -LV2Plugin::lilv_plugin(LilvPlugin p) +LV2Plugin::lilv_plugin(const LilvPlugin* p) { _lilv_plugin = p; } @@ -96,7 +96,7 @@ LV2Plugin::library_path() const { static const std::string empty_string; if (_library_path.empty()) { - LilvValue v = lilv_plugin_get_library_uri(_lilv_plugin); + const LilvValue* v = lilv_plugin_get_library_uri(_lilv_plugin); if (v) { _library_path = lilv_uri_to_path(lilv_value_as_uri(v)); } else { -- cgit v1.2.1