From bf75eb9f0f11d4eae23dbb031f088877dfd5c125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Mon, 22 Jul 2019 20:57:26 +0200 Subject: Fix BSD build error. --- src/inputprocessor.cc | 2 +- src/velocityfilter.cc | 4 ++-- src/velocityfilter.h | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index 0439551..819a3c7 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -50,7 +50,7 @@ InputProcessor::InputProcessor(Settings& settings, // Build filter list filters.emplace_back(std::make_unique(settings)); filters.emplace_back(std::make_unique(settings, random)); - filters.emplace_back(std::make_unique(settings, random, kit.instruments)); + filters.emplace_back(std::make_unique(settings, random)); } bool InputProcessor::process(std::vector& events, diff --git a/src/velocityfilter.cc b/src/velocityfilter.cc index 7b41045..a983692 100644 --- a/src/velocityfilter.cc +++ b/src/velocityfilter.cc @@ -29,8 +29,8 @@ #include "random.h" #include "settings.h" -VelocityFilter::VelocityFilter(Settings& settings, Random& random, Instruments const& instruments) - : settings(settings), random(random), instruments(instruments) +VelocityFilter::VelocityFilter(Settings& settings, Random& random) + : settings(settings), random(random) { } diff --git a/src/velocityfilter.h b/src/velocityfilter.h index 6b6d567..67271ce 100644 --- a/src/velocityfilter.h +++ b/src/velocityfilter.h @@ -40,7 +40,7 @@ class VelocityFilter : public InputFilter { public: - VelocityFilter(Settings& settings, Random& random, Instruments const& instruments); + VelocityFilter(Settings& settings, Random& random); bool filter(event_t& event, std::size_t pos) override; @@ -49,5 +49,4 @@ public: private: Settings& settings; Random& random; - Instruments const& instruments; }; -- cgit v1.2.3