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 --- ingen/LV2Features.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ingen/LV2Features.hpp') diff --git a/ingen/LV2Features.hpp b/ingen/LV2Features.hpp index 541af576..db5d530f 100644 --- a/ingen/LV2Features.hpp +++ b/ingen/LV2Features.hpp @@ -44,7 +44,7 @@ public: virtual const char* uri() const = 0; - virtual SPtr feature(World* world, + virtual SPtr feature(World& world, Node* block) = 0; protected: @@ -57,7 +57,7 @@ protected: const char* uri() const override { return _uri; } - SPtr feature(World* world, Node* block) override { + SPtr feature(World& world, Node* block) override { return SPtr(); } @@ -82,8 +82,7 @@ protected: void add_feature(SPtr feature); bool is_supported(const std::string& uri) const; - SPtr lv2_features(World* world, - Node* node) const; + SPtr lv2_features(World& world, Node* node) const; private: typedef std::vector< SPtr > Features; -- cgit v1.2.1