summaryrefslogtreecommitdiffstats
path: root/ingen/LV2Features.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-08 09:06:55 +0100
committerDavid Robillard <d@drobilla.net>2019-03-08 09:06:55 +0100
commitacb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9 (patch)
treea229f986933c8ef9d9c15b36ecf58b04ebeaa7c0 /ingen/LV2Features.hpp
parent112eb3a668f65547b1757978b02cbafebf97b794 (diff)
downloadingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.gz
ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.bz2
ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.zip
Pass World everywhere by reference
Diffstat (limited to 'ingen/LV2Features.hpp')
-rw-r--r--ingen/LV2Features.hpp7
1 files changed, 3 insertions, 4 deletions
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<LV2_Feature> feature(World* world,
+ virtual SPtr<LV2_Feature> feature(World& world,
Node* block) = 0;
protected:
@@ -57,7 +57,7 @@ protected:
const char* uri() const override { return _uri; }
- SPtr<LV2_Feature> feature(World* world, Node* block) override {
+ SPtr<LV2_Feature> feature(World& world, Node* block) override {
return SPtr<LV2_Feature>();
}
@@ -82,8 +82,7 @@ protected:
void add_feature(SPtr<Feature> feature);
bool is_supported(const std::string& uri) const;
- SPtr<FeatureArray> lv2_features(World* world,
- Node* node) const;
+ SPtr<FeatureArray> lv2_features(World& world, Node* node) const;
private:
typedef std::vector< SPtr<Feature> > Features;