From 112eb3a668f65547b1757978b02cbafebf97b794 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 08:21:27 +0100 Subject: Make parser take mandatory arguments by reference --- src/server/events/Copy.cpp | 2 +- src/server/ingen_lv2.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server') diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp index 5d2d511c..960b6004 100644 --- a/src/server/events/Copy.cpp +++ b/src/server/events/Copy.cpp @@ -180,7 +180,7 @@ Copy::filesystem_to_engine(PreProcessContext& ctx) } _engine.world()->parser()->parse_file( - _engine.world(), _engine.world()->interface().get(), src_path, + *_engine.world(), *_engine.world()->interface(), src_path, dst_parent, dst_symbol); return Event::pre_process_done(Status::SUCCESS); diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 04cc5a33..c0749847 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -570,8 +570,8 @@ ingen_instantiate(const LV2_Descriptor* descriptor, // Parse graph, filling the queue with events to create it plugin->world->interface()->bundle_begin(); - plugin->world->parser()->parse_file(plugin->world, - plugin->world->interface().get(), + plugin->world->parser()->parse_file(*plugin->world, + *plugin->world->interface(), graph->filename); plugin->world->interface()->bundle_end(); @@ -771,7 +771,7 @@ ingen_restore(LV2_Handle instance, // Load new graph std::lock_guard lock(plugin->world->rdf_mutex()); plugin->world->parser()->parse_file( - plugin->world, plugin->world->interface().get(), real_path); + *plugin->world, *plugin->world->interface(), real_path); free(real_path); return LV2_STATE_SUCCESS; -- cgit v1.2.1