diff options
author | David Robillard <d@drobilla.net> | 2019-03-08 08:21:27 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-08 08:21:27 +0100 |
commit | 112eb3a668f65547b1757978b02cbafebf97b794 (patch) | |
tree | e40e3e7b145d8bca8496d42165ae2dce2bb627ea /src/server | |
parent | a758bd3a5ea0d1155b661db6c2d35466dff73fb0 (diff) | |
download | ingen-112eb3a668f65547b1757978b02cbafebf97b794.tar.gz ingen-112eb3a668f65547b1757978b02cbafebf97b794.tar.bz2 ingen-112eb3a668f65547b1757978b02cbafebf97b794.zip |
Make parser take mandatory arguments by reference
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/events/Copy.cpp | 2 | ||||
-rw-r--r-- | src/server/ingen_lv2.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
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<std::mutex> 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; |