From acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 09:06:55 +0100 Subject: Pass World everywhere by reference --- src/Log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Log.cpp') diff --git a/src/Log.cpp b/src/Log.cpp index c1f8cb0a..c325a8ed 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -143,13 +143,13 @@ free_log_feature(LV2_Feature* feature) { } SPtr -Log::Feature::feature(World* world, Node* block) +Log::Feature::feature(World& world, Node* block) { Handle* handle = (Handle*)calloc(1, sizeof(Handle)); handle->lv2_log.handle = handle; handle->lv2_log.printf = log_printf; handle->lv2_log.vprintf = log_vprintf; - handle->log = &world->log(); + handle->log = &world.log(); handle->node = block; LV2_Feature* f = (LV2_Feature*)malloc(sizeof(LV2_Feature)); -- cgit v1.2.1