From ece884c9c7c7802d92539cef7fbcc69c41ad21c5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Mar 2015 08:26:36 +0000 Subject: Simplify LV2 state restore code. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5622 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/ingen_lv2.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 596e24e6..df0a29e6 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -752,16 +752,15 @@ ingen_restore(LV2_Handle instance, uint32_t type; uint32_t valflags; - const void* path = retrieve(handle, - ingen_file, - &size, &type, &valflags); + const char* path = (const char*)retrieve(handle, + ingen_file, + &size, &type, &valflags); if (!path) { return LV2_STATE_ERR_NO_PROPERTY; } - const char* state_path = (const char*)path; - char* real_path = map_path->absolute_path(map_path->handle, state_path); + char* real_path = map_path->absolute_path(map_path->handle, path); plugin->world->parser()->parse_file(plugin->world, plugin->world->interface().get(), -- cgit v1.2.1